Created
December 30, 2011 20:15
-
-
Save rsimoes/1541294 to your computer and use it in GitHub Desktop.
Concatenative, stack-oriented Perl DSL
This file contains 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
"What is 2 + 3?" . say . readline | |
. { 2 . 3 . add . eqn } | |
. { "Correct!" . say } . { "Incorrect" . say } | |
. ifte |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment