module Foo def bar Foo Foo bar Error Line syntax error before eol fun

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
>> module Foo
.. def bar()
.. 2+2
..
=> Foo
>> s = Foo.bar
Error: Line 1: syntax error before: eol
>> s = fun {2+2}
=> #<Lambda -expr/5-fun-1- (module: erl_eval, arity: 0)>
>> s = fun {Foo.bar()}
=> #<Lambda -expr/5-fun-1- (module: erl_eval, arity: 0)>
>>