Share on Facebook Share on Twitter Email
Answers.com

Cobra

 
Wikipedia: Cobra (programming language from Cobra Language LLC)
Cobra
Usual file extensions .cobra
Paradigm Multi-paradigm: object-oriented
Appeared in 2006
Designed by Chuck Esterbrook
Developer Cobra Language LLC
Latest release 2009-03-20/ March 20, 2009
Typing discipline strong, static, dynamic, inferred
Influenced by Python, Eiffel, C#, Objective-C
OS Microsoft .NET, Mono
License MIT
Website http://cobra-language.com/

Cobra is an object-oriented programming language produced by Cobra Language LLC.[1] Cobra is designed by Chuck Esterbrook, and runs on the Microsoft .NET and Mono frameworks.[2] It is strongly influenced by Python, C#, Eiffel, Objective-C and other programming languages.[3] It supports both static and dynamic typing.[4][5] It has first class support for unit tests and contracts.[4] Cobra provides both rapid development and performance in the same language.[6]

Cobra is an open-source project. It was released under the MIT open source license on February 29, 2008.[7]

A monthly update is posted to the Cobra news forum with progress on features, fixes, documentation and related projects since the last update.[8]

Contents

Features

Examples

The following examples can be entered into a file and run using cobra <filename>.

Classic Hello world example:

class Hello
    def main
        print 'Hello, World'


Simple class:

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'

References

  1. ^ The Cobra Programming Language home page
  2. ^ The Cobra Programming Language, C. Esterbrook, Lang.NET Symposium 2008
  3. ^ Cobra takes a bite at open source, Adrian Bridgwater, ZDNet UK, Mar 2008
  4. ^ a b Reaping the Benefits of Cobra, Ted Neward, MSDN Magazine, June 2009
  5. ^ Was George Costanza a Computer Programmer?, Jonathan Erickson, Dr. Dobb's Journal, April 2008
  6. ^ Cobra language slithering to open source, Paul Krill, InfoWorld, Feb 2008
  7. ^ "The Cobra Programming Language". http://cobra-language.com/downloads/source/. Retrieved on 2008-02-29. 
  8. ^ Cobra News Forum

External links



Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
cobra
Cobra (Reggae Band, '80s, '90s)
Wadjet (Edjo/Uto) (in archaeology)

How many cobras can a mother cobra have? Read answer...
Are cobras picky? Read answer...
What do cobras do to protec them? Read answer...

Help us answer these
What is a cobras niche?
What is a cobra's enemy?
Where does cobra live?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Cobra (programming language from Cobra Language LLC)" Read more