Last active
August 29, 2015 13:57
-
-
Save flaviut/9474507 to your computer and use it in GitHub Desktop.
A template to allow the use of `:=` for assignment
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
template `:=`(name: expr, value: expr): stmt {.dirty immediate.} = | |
var name = value | |
a := 123 | |
echo a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment