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

Heinz N. Gies heinz@REDACTED
Fri Apr 20 19:51:35 CEST 2018


Ah no reason for being sorry, it’s super easy to miss existing stuff ;) I just was curious if it’s a “I didn't find this” or a “this is horrible!” Kind of new library :), cause I would have tried to fix #2!

> On 20. Apr 2018, at 18:49, Pierre Fenoll <pierrefenoll@REDACTED> wrote:
> 
> 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 <http://other.erldocs.com/> and add a real search engine...
> 
> On Fri 20 Apr 2018 at 17:19, Heinz N. Gies <heinz@REDACTED <mailto: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 <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 <mailto: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 <mailto:erlang-questions@REDACTED>
>> http://erlang.org/mailman/listinfo/erlang-questions <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/a5d3ff0a/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/a5d3ff0a/attachment.bin>


More information about the erlang-questions mailing list