jeffrey-s-foster/rtc — Issue #22: Add support for type abbreviations
Author: jtoman
Created: 2012-03-08 19:10:52+00:00
State: open

It would be helpful if common types could be abbreviated like in OCaml.

A possible use would be something like:

```ruby
typesig("type my_variant = :kind or :subscribers")
typesig("my_method: (Array) -> Foo")
```
There is the interesting question about the scope of these type abbreviations. For instance, should the following be valid?

```ruby
module MyModule
typesig("type my_variant = :kind of :subscribers")
class MyClass
rtc_annotated
typesig("my_method: (Array) -> Foo")
end
end
```