[erlang-patches] Scan "=<<" as something useful

Anthony Ramine n.oxyde@REDACTED
Mon Apr 29 15:30:52 CEST 2013


Comparing a variable with a binary literal must be very unusual code. Using your argument, I could also argue that epp concatenating strings literals together is harmful, because I could write ["foo"\n"bar"] instead of ["foo",\n"bar"] and that give no compilation error and unexpected runtime behaviour.

Should we remove concatenation of consecutive string literals?

Regards,

-- 
Anthony Ramine

Le 29 avr. 2013 à 15:14, Raimo Niskanen a écrit :

> ...that was wrong; rather that intending to write "A =< << 1 >>" without
> spaces as "A=<<<1>>" and misspelling to "A=<<1>>" would give no compiler
> error and unexpected runtime behaviour...




More information about the erlang-patches mailing list