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

Heinz N. Gies heinz@REDACTED
Fri Apr 20 17:19:50 CEST 2018

Hey I’ve been maintaining a rebar plugin for this for quite a while https://github.com/project-fifo/rebar_erl_vsn <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?


> 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://hex.pm/packages/otp_vsn>
> https://github.com/fenollp/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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180420/f6b8841e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180420/f6b8841e/attachment.bin>

More information about the erlang-questions mailing list