Feature Request #14

Allow type annotations

Added by Daniel Berger 871 days ago.

Status:New Start:03/10/2008
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:- Spent time: -
Target version:-

Description

Let this be legal syntax:
# Type variable => return Type
def fib(Integer n) => Integer
   ...
end

That would allow the interpreter to make certain optimizations. It could also be used by doc generators.

See http://headius.blogspot.com/2008/03/duby-type-inferred-ruby-like-jvm.html.

Also available in: Atom PDF