-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Since dict() type was deprecated in erlang 17.0 and removed in 18.0 (in favour of dict:dict()), library now won't compile on 18.0.
At the same time, we can't just replace all dict() with dict:dict(), since then it won't compile on R16.
AFAIK, there are 2 solutions used:
- Add some release version detection to rebar.config and add conditional macroses like
-ifdef BUILTIN_DICT. -type dictionary() :: dict(). -else. -type dictionary() :: dict::dict(). -end. - Just temporarily replace strict
dict()typespec to some relaxed one likeany()ortuple()(since dict is a tuple inside)
Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels