Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-04-13 | beam_validator: No longer require strict literal term order | Björn Gustavsson | |
The BEAM loader will now sort keys for maps during loading, so beam_validator should not require the keys to be ordered any order. However, we must still ensure that literals keys are unique (which was implicitly guaranteed by the strict ordering requirement). | |||
2015-02-18 | beam_validator: Tighten and simplify map validation code | Björn Gustavsson | |
The assert_strict_literal_termorder/1 function is used to validate the get_map_elements and has_map_fields instructions. In neither case is it useful to allow an empty lists of fields, so we should no longer allow an empty list. The mmap/2 function is cute, but it is used in only one place, so it is much simpler to write a special-purpose function to extract the keys from the list of map pairs. |