[erlang-questions] Temporarily violating record type constraints annoys dialyzer

Roger Lipscombe roger@REDACTED
Tue Nov 13 18:49:40 CET 2018

On 12 November 2018 at 22:36, Krzysztof Jurewicz
<krzysztof.jurewicz@REDACTED> wrote:
>> Generation of from_map/2 is however currently not implemented in dynarec.
> I’ve implemented generation of from_map/2 and to_map/1; see this pull request: https://github.com/dieswaytoofast/dynarec/pull/7 . It should now be possible to convert records to maps and vice versa without writing boilerplate code.

That's *almost* perfect ;-)

Except that we load the code from JSON, using jiffy, which means that
the keys are binary strings. I had a quick look at doing a PR for
this, but I'm a bit sketchy when it comes to parse transforms, and I
got side tracked.

More information about the erlang-questions mailing list