| ▲ | Lio 2 days ago | |
I love these new approaches to type checking such as this and Literal[1]. I think they really show how far we could go with runtime ruby syntax. For both though I have questions: A. How do I use this day to day to improve my tooling and developer experience? B. If at some point in the future I decide to get rid of this how easy is it to eject? I've seen too many adandoned dependencies over the years to trust anything I can't easily remove when it's time to upgrade. These runtime typing efforts look nicer than Sorbet but, as far as I can see, you still have to have complete test coverage to trigger runtime checks if you want to spot correctness issues before you deploy into production. Sorbet doesn't have that problem right now. Maybe something clever using Prism might be a way round that? | ||
| ▲ | dmux an hour ago | parent | next [-] | |
>These runtime typing efforts look nicer than Sorbet but, as far as I can see, you still have to have complete test coverage to trigger runtime checks if you want to spot correctness issues before you deploy into production. I think you're right, and if that's the case, aren't these libraries (Lowtype, Literal) more akin to Design by Contract mechanisms? | ||
| ▲ | lowtype 2 days ago | parent | prev [-] | |
[dead] | ||