Skip to content

dict() type removed in erlang 18.0 #7

@seriyps

Description

@seriyps

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 like any() or tuple() (since dict is a tuple inside)

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions