Cobra (programming language from Cobra Language LLC)

From Wikipedia, the free encyclopedia

Cobra
Paradigm Multi-paradigm
Appeared in 2006
Designed by Chuck Esterbrook
Developer Cobra Language LLC
Latest release 0.8/ April 12, 2008
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. It is strongly influenced by Python, and is also influenced by C#, Eiffel, Boo and other programming languages. It supports both static and dynamic typing. It has first class support for unit tests and contracts.

Cobra includes:

  • OOP-related features:
    • classes, interfaces, structs, extensions
    • methods, properties, indexers
    • generics, attributes
  • Quality control:
    • contracts, assertions
    • unit tests, doc strings
    • compile-time nil tracking
  • Expressiveness:
    • static and dynamic binding
    • list and dictionary literals
    • in operator
    • for expressions
    • slicing
    • interpolated strings
    • compile-time type inference
  • General productivity:
    • exception handling
    • postmortem exception report
    • garbage collection
  • Scripting conveniences
    • clean syntax
    • one step run
    • pound-bang line (#!)
  • Compiled language performance

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

[edit] References

[edit] External links