Feature Request #14
Allow type annotations
| 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:
That would allow the interpreter to make certain optimizations. It could also be used by doc generators.
# 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.