Language change proposal

Chris Pressey cpressey@REDACTED
Fri Oct 24 18:55:27 CEST 2003


On Fri, 24 Oct 2003 11:07:38 +0200
Bengt Kleberg <Bengt.Kleberg@REDACTED> wrote:

> 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.

It's too late - it's already there!

<lugosi>THE HORROR THE HORROR</lugosi>

> i have maintained (somebody elses) c code which used #ifdef, and i 
> promised myself never to do that again.

OOC, were you using a syntax-colouring editor at the time?

-Chris



More information about the erlang-questions mailing list