``` class Foo extend T::Helpers
sig(
# Both positional and named parameters are referred to by name.
# You must declare all parameters (and the return value below).
foobar: Integer,
widget: String
)
.returns(Symbol)
def foo(foobar, widget: nil)
(foobar.to_s + widget).to_sym
end
end
```I'd love it if we could write this as :
``` class Foo
extend T::Helpers
def foo(foobar:Integer, widget:String:nil):Symbol
(foobar.to_s + widget).to_sym
end
end```
Not sure the best way to handle default values... e.g. widget:String:nil is kind of awkward... but still i'd be better this way then the additional method call 'sig'