Re:The Cobra Programming Language
by endtime on Wednesday January 26, 2011 @11:27PM
(#2146575)
Looks pretty interesting. Are there any other, more popular languages with such explicit support for tests and contracts?
[ Parent
| on HN ]
Clojure has support. Another place where the metadata (http://clojure.org/metadata) comes in handy.
And since Clojure is a lisp you get an nice DSL to work with it: https://github.com/fogus/trammel
Don't put stuff in your language make your language easy to expand it.
Re:The Cobra Programming Language
by jacques_chester on Wednesday January 26, 2011 @11:36PM
(#2146595)
The author mentions D as a language with these, but if I read it correctly, believes that his support for contracts is superior.
Eiffel was the original source of design-by-contract.