<div dir="ltr"><div>Sorry to my pool English</div>Example:<div><br><div><div>-module(test).</div><div>-export([test/0]).</div><div><br></div><div>test() -></div><div>    begin A = 1 end,</div><div>    A = 2. %% match error</div><div>    %io:format("~p~n", [A]). %normal output</div></div><div><br></div><div>The var A is in begin end scope, but it can visited by other scope.</div><div>Why isn't erlang support this?</div><div><br></div><div>no this feature, I can't write the next code:</div><div>-define(OUTPUT_3(A), begin [_,_,B|_]=A, io:format("~p~n", [B]) end).</div><div><br></div><div><br></div></div></div>