Latte-lang 0.0.2 ALPHA
Pre-release
Pre-release
Note that it's still an ALPHA version.
Fixed bugs and corner cases.
New features
Function type definition
fun FunctionName [ ( params [: Type] ) ] [:FunctionalInterface | FunctionalAbstractClass]
...
return something
e.g.
fun IndexRouter(routingContext)
routingContext.response.end("Hello")
router.route("/").handler(IndexRouter)
a class would be defined and the only abstract method would be overridden and filled with the code body.
Construct with type name
sb = StringBuilder
invokes the constructor with zero parameters.