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.
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.