Last active
October 22, 2015 16:16
-
-
Save mzemel/1e927df9641c293d08da to your computer and use it in GitHub Desktop.
This file contains hidden or 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
defmodule SweetSpot do | |
defmacro if(predicate, do: expression) do | |
end | |
end | |
defmodule Test do | |
require SweetSpot | |
SweetSpot.if(true, do: IO.puts "Hello world") | |
SweetSpot.if true do | |
IO.puts "Hello world" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment