MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/194l12/ruby_200/c8l27g2/?context=3
r/programming • u/HornedKavu • Feb 24 '13
193 comments sorted by
View all comments
0
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-annotationsthough 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.
4
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-annotationsthough 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.
2
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-annotationsthough 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.
1
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.
0
u/[deleted] Feb 24 '13
Nice, they added Perl 6-style function signatures.