Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created December 4, 2013 16:40
Show Gist options
  • Save AeroNotix/7790837 to your computer and use it in GitHub Desktop.
Save AeroNotix/7790837 to your computer and use it in GitHub Desktop.
-module(e).
-define(YO, 123).
-define(YO2, 10).
-compile([export_all, debug_info]).
f() ->
case 123 of
A ->
A;
B ->
B
end.
h(123) ->
ok;
h(123) ->
notok.
g() ->
case 123 of
123 when 123 =:= ?YO andalso 123 =/= ?YO2 ->
ok;
123 when 123 =:= ?YO andalso 123 =/= ?YO2 ->
notok
end.
r(123) when 123 =:= ?YO andalso 123 =/= ?YO2 ->
ok;
r(123) when 123 =:= ?YO andalso 123 =/= ?YO2 ->
notok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment