Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Last active July 1, 2017 15:40
Show Gist options
  • Save Ismael-VC/f56c2a79719f78f1e739bf243a7bdcec to your computer and use it in GitHub Desktop.
Save Ismael-VC/f56c2a79719f78f1e739bf243a7bdcec to your computer and use it in GitHub Desktop.
"Obfuscated" do-when loop in Julia.
eval(:(@doc("do-when loop"->macro$(:do)(πŸ™ˆ,πŸ™‰::Symbol,πŸ™Š)πŸ™‰β‰ :when&&error("expected `when` got `$πŸ™‰`");:(let;$πŸ™ˆ;while(!$πŸ™Š);$πŸ™ˆ;end;end)|>esc;end)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment