Language change proposal

Richard A. O'Keefe ok@REDACTED
Fri Oct 24 05:26:42 CEST 2003

	-module(stdlib, "8.3").	  % Needs 8.3 ERTS.
I hate this syntax, because it is so obviously declaring
the version of THIS module, not the version of Erlang.

Any method of declaring the version of the Erlang language that is
required should ideally have *erlang* in the name so that it is obvious
what it is the version *of*.

For example,

    -erlang([8,3,10]).	% Erlang 8.3J or later
    -module(thingy, [10,2,27]).  % This is thingy version 10.2.27

Like an XML declaration, this should go first.
A revised Erlang language might not even use -module for declaring
modules; some day we might see

    module StdLib (
        foo/1, bar/2
    ) where

(with apologies to Haskell).

More information about the erlang-questions mailing list