The Next Big Languageの正体は?
Steve Yeggeが期待する言語があるらしい。ただ、名指しをせず、特徴だけ記してある。(知っている人は知ってるかもと言っているから、まるっきりの新言語ではない)
特徴。
- NBL does not replace C++
- NBL is garbage collected.
- NBL isn't about winning beauty contests
- Rule #1: C-like syntax
- Rule #2: Dynamic typing with optional static types.
- Rule #3: Performance
- Rule #4: Tools
- Rule #5: Kitchen Sink
- Object-literal syntax for arrays and hashes
- Array slicing and other intelligent collection operators
- Perl 5 compatible regular expression literals
- Destructuring bind (e.g. x, y = returnTwoValues())
- Function literals and first-class, non-broken closures
- Standard OOP with classes, instances, interfaces, polymorphism, etc.
- Visibility quantifiers (public/private/protected)
- Iterators and generators
- List comprehensions
- Namespaces and packages
- Cross-platform GUI
- Operator overloading
- Keyword and rest parameters
- First-class parser and AST support
- Static typing and duck typing
- Type expressions and statically checkable semantics
- Solid string and collection libraries
- Strings and streams act like collections
Additionally, NBL will have first-class continuations and call/cc. I hear it may even (eventually) have a hygienic macro system, although not in any near-term release.
- Rule 6: Multi-Platform
NBL will run, at a minimum, both standalone and on the JVM. I'm not sure about plans for .NET, but it seems like that will have to happen as well.
これで全部かな? 大きな手がかりはcall/ccがあるってこと。
Rhinoかな。