Is there a definitive specification for Ruby, akin to the Java Language Specification for Java. Googling ruby language specification provides http://ruby-std.netlab.jp/ as a result, but the site is down and i am not sure whether it is current
+2
A:
There is currently no specification of the Ruby language, so the original implementation is considered to be the de facto reference.
References
See also
- ruby-std.netlab.jp - draft Ruby ISO standard
- ruby-standard.org - a wiki-format mirror of the draft Ruby ISO standard
- spec.ruby-doc.org - a community-driven project to write a complete, executable specification
polygenelubricants
2010-07-16 08:14:24
Thanks, i notice that spec.ruby-doc.org is an executable spec based on rspec. There does not seem to be any project ongoing for a written spec, so it does seem low on the priority list for the ruby community. Is there no value in having a written spec
HN
2010-07-16 08:24:58
@HN: I don't know Ruby culture enough to comment. That said, I love reading JLS.
polygenelubricants
2010-07-16 09:30:32
@HN: You could run the specs just for the output, say "Array#length returns blah, Array#length raises an error if blah, ...", to get a textual standard that would be really dull. There is a Ruby ISO standard effort, and a mirror is at http://ruby-standard.org/ Note that work on the builtin library has not started...
Marc-André Lafortune
2010-07-16 13:59:17
Thanks, looks interesting
HN
2010-07-17 10:37:16