Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
phpnode
· 12y ago · 0 comments
Eiffel's contracts are really compelling, I wish there was a reasonable, non-hacky way to implement them in more mainstream languages.
Comments
[–]
loumf
12y ago
I wouldn't say that clojure is mainstream, but their implementation is reasonable and makes sense in the clojure idiom (just a meta-data map on the function)
[–]
phpnode
OP
12y ago
Turns out there's a sort of reasonable way to implement them in JavaScript, it's definitely hacky though -
http://codemix.github.io/contractual/try.html