Skip to content

Instantly share code, notes, and snippets.

@back2dos

back2dos/Main.hx

Last active Dec 10, 2015
Embed
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')
}
@fponticelli

This comment has been minimized.

Copy link

@fponticelli fponticelli commented Jan 10, 2013

Nice! ;)

@dpeek

This comment has been minimized.

Copy link

@dpeek dpeek commented Jan 16, 2013

Wow, how is that a valid expression?

@TomByrne

This comment has been minimized.

Copy link

@TomByrne TomByrne commented Jan 16, 2013

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