This page describes the requirements for slang.
- Syntax
- Syntax must take simple grammar.
- The syntax must provide following data types.
- A complex number
- A closure(named and unnamed)
- A class
- The syntax must provide following container types.
- A vector
- A matrix
- A hash map
- The syntax provides dynamic prototyping of variables.
- The syntax provides scoping.
- The scope traces a closure or a class in the original source code.
- The syntax provides coercion.
- Class
- slang class consists of variables.
- Each element has an attribute of public and private.
- public variable can be invoked from closures out of the class.
- private variable cannot be invoked from closures out of the class.
- Default attribute is private.
- slang class doesn't inherit.