Hacker News new | ask | show | jobs
by zeeboo 4342 days ago
I made this Go one that might be cheating because instead of the ("al") call returning a string, you get a value that implements the String method. Works with fmt.Println :)

http://play.golang.org/p/zrp2sO6ZLU

2 comments

This is awesome! Can you add a main method with an example of it working and submit a pull request?
This is close to identical to what I did, but the use of a global just felt too dirty. Still trying to figure out the use of a closure on it.
Definitely submit a pull-request if you figure out how to do it :)