Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created October 12, 2015 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wandernauta/c1fb320a3dd95e8214bf to your computer and use it in GitHub Desktop.
Save wandernauta/c1fb320a3dd95e8214bf to your computer and use it in GitHub Desktop.
Builder: interface <T> {
build: func -> T
}
HelloWorldBuilder: class implements Builder<String> {
init: func {
}
build: func -> String {
"Hello, world!"
}
}
main: func {
HelloWorldBuilder new() build() println()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment