Skip to content

Instantly share code, notes, and snippets.

@back2dos
Last active December 10, 2015 22:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save back2dos/4501812 to your computer and use it in GitHub Desktop.
Save back2dos/4501812 to your computer and use it in GitHub Desktop.
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
Copy link

Nice! ;)

@dpeek
Copy link

dpeek commented Jan 16, 2013

Wow, how is that a valid expression?

@TomByrne
Copy link

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