Create a gist now

Instantly share code, notes, and snippets.

@back2dos /Main.hx
Last active Dec 10, 2015

What would you like to do?
Hello world with tinx_node
package ;
class Main implements tink.lang.Cls {
static function main()
@with(tinx.node.Http.server(2000))
@on(request)
request.respond().end('hello world')
}

Nice! ;)

dpeek commented Jan 16, 2013

Wow, how is that a valid expression?

I'm also curious, I tried a similar thing in my E4X macro (i.e. Using @ in method name) A few days ago to no avail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment