[size=18]Design Goals[/size]
The goals used to design Stab were as follows:
* The syntax should be readable without difficulties by Java/C# programmers
* The execution of a Stab program should be as efficient as the execution of the same program written in Java
* The generated bytecode should be usable transparently from Java
* The Java libraries should be usable from Stab programs without adaptations
[size=18]Current State[/size]
All the features listed below are implemented and tested. The compiler is stable enough to compile its own source code (Stab is written 100% in Stab).
A beta version is available for download.
[size=18]Features[/size]
This section presents an overview of the features found in the Stab language. Additional informations can be found here: StabLanguage.
JVM compatibility
Stab has almost all the features that can be found in Java:
* The same primitive types and operators with automatic boxing/unboxing
* Arrays, classes, interfaces, enums, constructors, fields and methods
* Methods with variable number of arguments
* C-like if/else, for, while, do, switch statements
* Exceptions handling with try/catch/finally and throw
* synchronized blocks and methods
* Compile-time generic programming including constraints and wildcards
* Annotations
Stab supports nested classes but not inner classes. To access a non-static member of an outer class, an explicit reference must be used.
Mais em http://code.google.com/p/stab-language/
Fonte: http://twitter.com/opinali
Mikhas
Outubro 1, 2010, 9:47am
#2
Bacana!
Alguns elementos da linguagem tem uma sintax estranha.
Vou tentar fazer um programa com isso ai
[quote=Mikhas]Bacana!
Alguns elementos da linguagem tem uma sintax estranha.
Vou tentar fazer um programa com isso ai ;)[/quote]
O que exatamente você achou estranho?
Dei uma olhada nos fontes e achei curioso que usa diretamente a API do Java SE. Ao invés de procurar emular as APIs do C# (pelo menos as partes que a MS liberou para o ECMA).
Tem muito do D da digital mars e properties do objectpascal ou c#. Muito boa.
Adelar
Outubro 1, 2010, 7:23pm
#5
Interessante. Curti que dá pra usar o #define do C.
Att.
Legal. A Oracle devia contratar este cara.