News for hackers. Stuff that matters.
Re:RBS, Ruby’s new type signature language by chc on Wednesday July 29, 2020 @06:39PM (#23992359)
I mean, the most obvious solution would just be to unify Ruby's basic syntax with the RBS syntax shown in the OP. This format already looks like a Ruby class definition with the method bodies omitted and some simple "-> type" and ": type" syntax added. I think that's why people find the separation confusing.
Re:RBS, Ruby’s new type signature language by dragonwriter on Wednesday July 29, 2020 @07:01PM (#23992504)
> This format already looks like a Ruby class definition with the method bodies omitted and some simple "-> type" and ": type" syntax added

The thing is that much of it is perfectly valid Ruby code with wildly different semantics already, so, no, without breaking a lot, you can't unify it with Ruby syntax.