Skip to content

Latte-lang 0.0.2 ALPHA

Pre-release
Pre-release
Compare
Choose a tag to compare
@wkgcass wkgcass released this 24 Jun 05:17
· 201 commits to master since this 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.