Comment on Mypy - An experimental Python variant with dynamic and static typingComments−alexholehouse13yReminds me a bit of Julia[1], which allows optional static typing.[1] http://julialang.org/−draegtun13yPerl6 also has optional typing: sub fib (Int $n) returns Void { my Int ($a, $b) = 0, 1; while $a < $n { say $a; ($a, $b) = ($b, $a + $b); } } NB. At moment Void doesn't appear to be implemented in current version of Rakudo. Removing returns Void will make it work!
Comments
Reminds me a bit of Julia[1], which allows optional static typing.
[1] http://julialang.org/
Perl6 also has optional typing:
NB. At moment Void doesn't appear to be implemented in current version of Rakudo. Removing returns Void will make it work!