6 ms·
I like Ruby! Ruby has types. They just aren't enforced by a compiler.
by davetron5000 1y ago
I like Ruby! Ruby has types. They just aren't enforced by a compiler.
- gavmor 1y agoWell, yeah, then what's the point?
- davetron5000 1y agoI'm OK not using a compiler. Used one for years and am good on that for now. I like writing Ruby.
- Lio 1y agoYou can use a static analysis tool to check Ruby types ahead of time (still not a compiler) or provide information for tooling. Alternatively you use them at runtime to check the correctness of data, which I don't think you can usually do with say Typescript where the typing information is for the most part compiled away[1]. 1. I may be out of date on this but when I last looked at runtimes that could take Typescript directly they just threw the typing away. You just didn't need to use the tsc compiler first.
- gavmor 1y ago> use a static analysis tool to check Ruby types ahead of time (still not a compiler) I'll have to check out typeprof and sorbet.