News for hackers. Stuff that matters.
Re:Sorbet: A fast, powerful type checker designed for Ruby by geraldbauer on Friday April 19, 2019 @03:58AM (#19697825)
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

There are no comments on this comment yet.