From: Aaron Patterson Date: 2010-04-09T04:32:26+09:00 Subject: [ruby-core:29357] Re: [Bug #3112] require "yaml" doesn't use psych as default --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 09, 2010 at 03:24:49AM +0900, Caleb Clausen wrote: > On 4/8/10, Aaron Patterson wrote: > > Other methods are deprecated because they are simply duplicates. For > > example, YAML.load_documents and YAML.each_document do _exactly_ the sa= me > > thing. > > YAML.each_node and YAML.parse_documents do _exactly_ the same thing. >=20 > In these 2 cases, all that's needed are aliases. What's wrong with > that? We have aliases other places in the ruby's stdlib, and no one is > crying out to retire collect! in favor of map!, for instance. > (Besides, I like the each_* names somewhat better; they're more > familiar to your average rubyist. Not that I've ever actually used > either method....) Does "load_documents" sound like it does the same thing as "each_document"? Does "each_node" sound like it does the same thing as "parse_documents"? I would buy your argument if they were synonyms. --=20 Aaron Patterson http://tenderlovemaking.com/ --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iQEcBAEBAgAGBQJLvi88AAoJEJUxcLy0/6/G1PsH/Raq7Nqf5SkikRwp9lrReIYf eL8KvdlcoobWv9AkQWn506eWNILS1TRab0OOQViNivUaH1jUndp58TqjrLleT7Wi nQOUcTHi/Cn69xE/iasZluNtHtYPq4Y99lisIhPnpuOwzX44Bhz9KSCPLSW6EwES vwN6yJMXeIEBRg4Sg9s7YOCJAtafXHXvwGcCyfyXfEHDsRjpGcrwzmTFwjzKNMFR QiAya0UdvyfKXvlUUJ2Yw0lg1fQveMtDQl58Qbo6fD5bCqQafOyLuUeCa88CuR0s bueEnKCBbUwVPuXbQfNPuemiur5pjAtvvb+EvqsuL4UjU481KnQAU9tFMqmrl2M= =46Qw -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--