Last active
December 10, 2015 22:28
-
-
Save back2dos/4501812 to your computer and use it in GitHub Desktop.
Hello world with tinx_node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
class Main implements tink.lang.Cls { | |
static function main() | |
@with(tinx.node.Http.server(2000)) | |
@on(request) | |
request.respond().end('hello world') | |
} |
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
Nice! ;)