r/programming • • Feb 24 '13

Ruby 2.0.0

http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
600 Upvotes

193 comments sorted by

View all comments

0

u/[deleted] Feb 24 '13

Nice, they added Perl 6-style function signatures.

4

u/xiongchiamiov Feb 24 '13

You mean, Python-style function signatures?

2

u/[deleted] Feb 24 '13

On closer inspection you seem to be right, since both those languages lack the ability to specify type constraints.

1

u/DGolden Feb 25 '13

well, python added syntax for function annotations, that could be conceivably used for type declarations, among other things, as noted in the spec.

http://www.python.org/dev/peps/pep-3107/#fundamentals-of-function-annotations

though it would be dependent on a compiler or library that may not currently exist [didn't when i last checked but that was some time ago] to use them that way.