You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/01/30 20:19:24 UTC
[GitHub] eiri commented on issue #1890: Remove usage of tuple calls for OTP
21.x compatibility.
eiri commented on issue #1890: Remove usage of tuple calls for OTP 21.x compatibility.
URL: https://github.com/apache/couchdb/issues/1890#issuecomment-459093626
@wohali yes, `element/2` and `apply/3` are going back as far as OTP R10 at lease and the change snippet itself is pretty much what compiler does for the tuple calls behind the scene when flag `tuple_calls` is set. The flag itself was added in OTP 21 for back compatibility and @nickva set it in #1640. We have until OTP 24 until this back compatibility removed.
There are an option not to use somehow obscure `apply` dance, but just call `mochiweb_request` directly, i.e. instead of `RawUri = MochiReq:get(raw_path),` do `RawUri = mochiweb_request:get(raw_path, MochiReq),`, but it depends on how mochiweb is going to address removing tuple calls, they may introduce now module as a frontend or start requiring `parse_transform` in style of `lager`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services