Re:Ruby: We have decided to go forward to 3.0 this year
by sosodev on Monday August 31, 2020 @11:56AM
(#24332702)
Are you sure it’ll be awful? Sorbet (https://sorbet.org/) is pretty popular already. It can statically check your whole project and dynamically check it at runtime. It also doesn’t add that much overhead so I’m not sure what you’re on about...
[ Parent
| on HN ]
Re:Ruby: We have decided to go forward to 3.0 this year
by pmarreck on Monday August 31, 2020 @12:08PM
(#24332800)
What does it do with your library code that isn't type-specified? If it infers types, isn't there a limit as to how far that can go?
Re:Ruby: We have decided to go forward to 3.0 this year
by dbalatero on Monday August 31, 2020 @12:31PM
(#24333063)
Not sure what Ruby core will do, but Sorbet will type everything as T.untyped in the absence of type hints. Libraries can progressively provide rbi files to add first class type support though.
Re:Ruby: We have decided to go forward to 3.0 this year
by oomkiller on Monday August 31, 2020 @12:30PM
(#24333042)
Sorbet looks really cool, too bad they developed their own typing system that keeps types in a totally separate file instead of adopting it.
Re:Ruby: We have decided to go forward to 3.0 this year
by jamesgeck0 on Monday August 31, 2020 @01:48PM
(#24333999)
Sorbet was developed before the details of the new Ruby type system were locked in. They’re working on providing some convergence in upcoming releases.
Re:Ruby: We have decided to go forward to 3.0 this year
by tomc1985 on Monday August 31, 2020 @02:05PM
(#24334189)
The 'separate' file is to avoid breaking backwards compatibility and avoiding a Python2/3 fiasco
Re:Ruby: We have decided to go forward to 3.0 this year
by virtue3 on Monday August 31, 2020 @03:28PM
(#24335097)
Also see coffeescript, etc.