From: Intransition Date: 2011-06-27T14:19:14+09:00 Subject: Re: Honoring #to_ary and such On Jun 26, 9:16 pm, Leslie Viljoen wrote: > On Sat, Jun 25, 2011 at 7:38 AM, Intransition wrote: > > Well, for about the first time I am writing a library that has to be > > very strict about types. Per the usual I am testing types with `case`, > > I am interested to know why it has to be strict about types? Very simple, I am writing the code to read in and validate and very strict YAML specification. And the reason that the YAML spec if so strict is to make it extremely easy to work with in the raw, i.e. an end-user can read in the file with YAML.load_file and know exactly what to expect without needing a special API or doing hardly anything in the way of parsing the data provided.