Cobra (programming language from Cobra Language LLC)
From Seo Wiki - Search Engine Optimization and Programming Languages
|Usual file extensions||.cobra|
|Designed by||Chuck Esterbrook|
|Developer||Cobra Language LLC|
|Stable release||2009-03-20 (March 20, 2009)|
|Typing discipline||strong, static, dynamic, inferred|
|Influenced by||Python, Eiffel, C#, Objective-C|
|OS||Microsoft .NET, Mono|
Cobra is an object-oriented programming language produced by Cobra Language LLC. Cobra is designed by Chuck Esterbrook, and runs on the Microsoft .NET and Mono frameworks. It is strongly influenced by Python, C#, Eiffel, Objective-C and other programming languages. It supports both static and dynamic typing. It has first class support for unit tests and contracts. Cobra provides both rapid development and performance in the same language.
A monthly update is posted to the Cobra news forum with progress on features, fixes, documentation and related projects since the last update.
- Quality control:
- Static and dynamic binding
- List, dictionary, and set literals
- in and implies operator
- for expressions
- Interpolated strings
- Compile-time type inference
- Lambdas and closures
- General productivity:
- Scripting conveniences:
- Clean syntax
- Dynamic binding
- One-step run
- Shebang line (#!)
- Doc tool (cobra -doc)
- Syntax highlighting tool (cobra -highlight)
The following examples can be entered into a file and run using
Classic Hello world example:
class Hello def main print 'Hello, World'
class Person var _name as String var _age as int cue init(name as String, age as int) _name, _age = name, age def toString as String is override return 'My name is [_name] and I am [_age] years old'
- ↑ The Cobra Programming Language home page
- ↑ The Cobra Programming Language, C. Esterbrook, Lang.NET Symposium 2008
- ↑ Cobra takes a bite at open source, Adrian Bridgwater, ZDNet UK, Mar 2008
- ↑ 4.0 4.1 Reaping the Benefits of Cobra, Ted Neward, MSDN Magazine, June 2009
- ↑ Was George Costanza a Computer Programmer?, Jonathan Erickson, Dr. Dobb's Journal, April 2008
- ↑ Cobra language slithering to open source, Paul Krill, InfoWorld, Feb 2008
- ↑ "The Cobra Programming Language". http://cobra-language.com/downloads/source/. Retrieved 2008-02-29.
- ↑ Cobra News Forum
|File:HelloWorld.svg||This programming language-related article is a stub. You can help Wikipedia by expanding it.|