Hacker News new | past | comments | ask | show | jobs | submit login

Surely a good IDE such as RubyMine would be able to display the type in reponse to, say, a mouseover?



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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: