3 ms·
My problem with Sorbet is how ugly it looks. It's probably not possible to do with Ruby (now) but Crystal does it better[1] while (mostly) retaining the syntax
by brigandish 5y ago
My problem with Sorbet is how ugly it looks. It's probably not possible to do with Ruby (now) but Crystal does it better[1] while (mostly) retaining the syntax of Ruby. I suppose it's trying for Elixir's @spec, which I like less than Crystal's sigs but still prefer over this.
Still, if it helps it helps.
[1] https://crystal-lang.org/reference/1.3/tutorials/basics/60_methods.html https://crystal-lang.org/reference/1.3/tutorials/basics/60_m...
Edit: Perhaps I spoke too soon https://blog.appsignal.com/2021/01/27/rbs-the-new-ruby-3-typing-language-in-action.html https://blog.appsignal.com/2021/01/27/rbs-the-new-ruby-3-typ...
- faitswulff 5y agoI haven't used it, but I actually appreciate how Sorbet is written in Ruby syntax. After a bit of adjustment, it's pretty easy to grok.