Lably
Skip to content

Cobra (programming language)

  • 2 min read
  • 2 chapters

Related on Lably

Through Object-oriented programming, Python (programming language) and Open-source software

Cobra is an open-source project; it was released under the MIT License on February 29, 2008.

Features

Object-oriented
  • Namespaces
  • Classes, interfaces, structs, extensions, enumerations
  • Methods, properties, indexers
  • Mixins, extension methods
  • Generics, attributes
Quality control
Expressiveness
  • Static and dynamic binding
  • List, dictionary, and set literals
  • in and implies operator
  • for expressions
  • Slicing
  • Interpolated strings
  • Compile-time type inference
  • Lambdas and closures
General productivity
Scripting conveniences
  • Clean syntax
  • Dynamic binding
  • One-step run
  • Shebang line (#!)
Miscellaneous
  • Documentation tool (cobra -doc)
  • Syntax highlighting tool (cobra -highlight)

Sign in to keep reading

One more chapter is free with a Lably account.

More in Computing and communication