Re:Types will be part of Ruby 3 stdlib source
by geraldbauer on Friday April 19, 2019 @03:52AM
(#19697806)
The type signature in (secure) ruby [1] - an alternative ruby (subset) with type (optional) annotation - is `sig Integer => String` or `sig [Integer] => [String]. Since the sig is just ruby you can create an alias for types e.g. I = Integer, S = String and than use sig I=>S, for example. [1]: https://github.com/s6ruby
[ Parent
| on HN ]
There are no comments on this comment yet.