views:

50

answers:

1

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

polygenelubricants
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
@HN: I don't know Ruby culture enough to comment. That said, I love reading JLS.
polygenelubricants
@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
Thanks, looks interesting
HN