Sorbet: A fast, powerful type checker designed for Ruby

by jezon 4/19/19, 2:43 AMwith 3 comments
by geraldbaueron 4/19/19, 7:58 AM

Great inspiring project. Hopefully, open source soon. FYI: sruby - that is (secure) ruby[1] - is an alternative ruby (subset) with an alternative (optional) type annotation syntax e.g. Sorbet's `sig {params(x: Integer).returns(String)}` becomes `sig Integer => String` or `sig [Integer] => [String]`.

Note: Since the sig is "yes, it's just (regular) ruby" code 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

by localhostdotdevon 4/19/19, 9:53 AM

not sure why they don't release it, it's been a few years already