Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Then you want Design By Contract, dependent types, or formal verification.

However, several factors have to be taken into account regarding performance impact when they get cleverly written, thus in manys cases they can only be fully turned on during debug builds.



Out of curiosity, have you looked at Cue before?

It seems to be used for stuff like this, though I'm yet to really look into it properly.

https://cuelang.org


No, yet another language to discover, thanks.




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

Search: