4 ms·
Ruby is awesome, so yes that would be wrong. But is it wrong that I was secretly hoping the answer was to abandon the project? Contracts are not needed and it
by rubyissofun 13y ago
Ruby is awesome, so yes that would be wrong. But is it wrong that I was secretly hoping the answer was to abandon the project?
Contracts are not needed and it obfuscates the error raising. Just use plain Ruby if you need to raise an exception. I'm will seriously quit using Ruby if someone makes me use contracts.
But it looks like a fun project to write. Nothing wrong with that.
- cmccabe 13y agoYeah, it sounds like he should just use a statically typed language. (yes, I am aware that types != contracts, but they're similar enough that my statement still stands)