[erlang-questions] [ANN] otp_vsn 1.0.0 - ?OTP_VSN

Pierre Fenoll pierrefenoll@REDACTED
Fri Apr 20 18:49:14 CEST 2018


Oh well I didn’t know about this! Sorry about that I’ll take a look and
discuss there.
I need to work on other.erldocs.com and add a real search engine...

On Fri 20 Apr 2018 at 17:19, Heinz N. Gies <heinz@REDACTED> wrote:

> Hey I’ve been maintaining a rebar plugin for this for quite a while
> https://github.com/project-fifo/rebar_erl_vsn I’m curious as to why a new
> library instead of contributing? Did it cause you problems or not solve a
> problem you encountered?
>
> Cheers,
> Heinz
>
> On 20. Apr 2018, at 12:51, Pierre Fenoll <pierrefenoll@REDACTED> wrote:
>
> Howdy people,
>
> I just released a library called otp_vsn which defines helpful macros if
> you write code that spans multiple OTP releases.
>
> This saves you the copy/pasting/tweaking of erl_opts's platform_define.
> Header-only, no dependencies. Supports releases from R16B01 to latest.
>
> For example if you want to use the #{maps => syntax} but still be able to
> compile your code on releases earlier than 17.5 you can use
> ifdef(OTP_VSN_17_AND_ABOVE).
>
> This release is super fresh (published 15 minutes ago) and feedback is
> welcomed!
> I'm looking for macros that are re-defined often such as
> * the maps thing I mention above
> * stdlib types getting renamed
> * functions being moved/renamed
>
> I think this library could be the place to put them in & help the
> community write code that still compiles on newer releases of Erlang :)
>
> https://hex.pm/packages/otp_vsn
> https://github.com/fenollp/otp_vsn
>
> Thanks & have a nice day
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
> --

Cheers,
-- 
Pierre Fenoll
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180420/575f6486/attachment.htm>


More information about the erlang-questions mailing list