[erlang-questions] Proposal: add lists:intersperse/2 and lists:intercalate/2

Vlad Dumitrescu <>
Wed Mar 2 21:05:12 CET 2016


On Wed, Mar 2, 2016 at 7:28 PM, Joe Armstrong <> wrote:

> Years ago I wanted to add a -needs(Vsn) annotation to module
>
> For example:
>
>      -needs(erl18).
>
> Means would mean you need version 18 of erlang.
>
> That way if you added a needs annotation to the code that used the updated
> lists
> then an earlier version of Erlang could give a meaningfull diagnostic
> and not just
> crash when the encountering a function 'from the future'.
>
> Actually I had another problem today - a program I wrote in 2003 did not
> work
> with the latest and greatest Erlang - not because the language had changed
> but because the library functions had been renamed and moved around.
>
> I guess a lint program would be useful here. It should be fairly
> doable to download
> all old erlangs and simple make lists of all the function names in all
> modules
> and do a bit of consistency checking.
>

One such tool is geas https://github.com/crownedgrouse/geas.

regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160302/72918042/attachment.html>


More information about the erlang-questions mailing list