5 ms·
Was going to reply to the parent of your comment, but since you beat me to it: >Actually, the name really is taken and by programming language: http://cobra-la
by vram22 12y ago
Was going to reply to the parent of your comment, but since you beat me to it:
>Actually, the name really is taken and by programming language: http://cobra-language.com/ http://cobra-language.com/ - looked nice when I last looked.
The Cobra language does look interesting [1]. Checked it out a little a few weeks ago. I think it only runs on .NET and Mono, though.
[1] It uses ideas from several languages, including Python. On the Cobra site, there are a few short comparisons between it and other languages, including Python:
http://cobra-language.com/docs/python/ http://cobra-language.com/docs/python/
Also, it has a feature similar to Design By Contract like Eiffel does:
http://cobra-language.com/docs/quality/ http://cobra-language.com/docs/quality/
Cobra is worth a look, and keeping eye on as it evolves, IMO.
- klibertp 12y agoI especially like optional static typing and compile-time protection from nil/None very much. It's type system doesn't look very sophisticated, but since you get fully dynamic variables with no (syntactic) overhead it's not that important. requires and ensures are very nice (as are tests), especially because the only other language with real contracts (Racket) focuses on functions and is a bit lacking when it comes to contracting methods with side-effects. It generally looks quite nice for a niche language and it's nice that it seems to be maintained. It seems that there is a JVM underway, by the way. Boo was the other similar, interesting language I checked out some time ago, but it seems to be under less active development (if at all). Anyway, if Python 3 is such a problem, then maybe let's port everything over to Cobra. It has snake in the name and familiar syntax and lots of goodies; imagine how far it could get if hundreds of thousands Python users would start working with it! (Just joking, although I'm wishing Cobra (and all other new or unpopular) languages the best of luck, of course)
- vram22 12y agoInteresting points, thanks, and good to know about the JVM support.