I mean it's a valid design choice to make runtime assertions a built-in language feature; D, Ada and Eiffel do something very similar, and some modern languages (e.g. Zig) have built-in unit testing. It's just that none of these language claim that "all contracts are checked at compile time".
well this one does, isn't that great? :) they are all checked, the unchecked ones become Result types that need to be unwrapped. so even they are checked.
hey whoever downvoted fuck off im trying to have a conversation here. jeez, reddit cucks, am i right aaron?
View all comments
Show parent comment
2
u/Aaron1924 11h ago
I mean it's a valid design choice to make runtime assertions a built-in language feature; D, Ada and Eiffel do something very similar, and some modern languages (e.g. Zig) have built-in unit testing. It's just that none of these language claim that "all contracts are checked at compile time".