jeffrey-s-foster/rtc — Issue #2: Implement Field Support
Author: jtoman
Created: 2012-02-24 21:45:38+00:00
State: open

Allow the programmer to annotate a "field" in the class. We would not actually be annotating fields, but saving the programmer from having to annotate both the setter and getter. For example:

```ruby
class MyClass
rtc_annotated
typesig("@foo: Fixnum")
end
```
would be shorthand for:

```ruby
class MyClass
typesig("foo: () -> Fixnum")
typesig("foo=: Fixnum -> Fixnum")
end
```
It is also worth looking into whether fields should be accessible at runtime for inspection, or if the above is purely short hand for method definitions.