Language change proposal

Bengt Kleberg Bengt.Kleberg@REDACTED
Fri Oct 24 11:07:38 CEST 2003


Chris Pressey wrote:
...deleted
> It's a good idea, but wouldn't it be easier to write code that works on
> different versions if it was done with macros,  e.g.
> 
>   -ifdef(?ERLANG_5_3).
>   % some code that uses bleeding-edge features here
>   -else.
>   -ifdef(?ERLANG_5_2).
>   % some code that uses 5.2-isms here
>   -else.
>   % some code that is dangerously language-version-unspecific here
>   -endif.
>   -endif.
> 

please do not allow this into erlang.
i have maintained (somebody elses) c code which used #ifdef, and i 
promised myself never to do that again.


bengt




More information about the erlang-questions mailing list