Re:RBS, Ruby’s new type signature language
by cutler on Wednesday July 29, 2020 @07:18PM
(#23992620)
Surely a good IDE such as RubyMine would be able to display the type in reponse to, say, a mouseover?
[ Parent
| on HN ]
Re:RBS, Ruby’s new type signature language
by derwiki on Wednesday July 29, 2020 @08:47PM
(#23993178)
RubyMine tries but it certainly works less well than PyCharm and GoLand.
But that is because it lacks type information. With type information added via RBS (or whatever other mechanism), they'd be able to parse that.
Re:RBS, Ruby’s new type signature language
by imhoguy on Thursday July 30, 2020 @03:51AM
(#23995686)
Go is statically typed.
RubyMine works great if you add yard type docs to your code.
Is it checking those types or just reporting then?
I’ve seen so many instances where yard doc has the wrong return type or misses a return type that I rarely trust it.
It doesn't do typechecks, no. You can use solargraph (https://github.com/castwide/solargraph) for that.