[eeps] Revised suggestion for EEP4 and EEP6
Tue Sep 11 17:38:13 CEST 2007
On 9/11/07, Per Gustafsson <> wrote:
> What will happen with size/1? Will it crash for non-binary bitstrings?
size will crash for non-binary bitstrings.
> > Type qualifiers in binary/bitstring expressions:
> > /binary
> > /bitstring
> > /bits (shorter alias to /bitstring)
> > /bytes (shorter alias to binary)
> > It can be questioned to have bits and bytes as alias, the only reason
> > is that it is convenient with a short notation in binary expressions
> > (Kenneth).
> I think that the big question is whether /binary-unit:1 should be
> exactly the same as /bitstring or not. I think it is reasonable for
> users to expect that Var:Size/binary-unit:X should always result in Var
> being bound to a binary regardless of the unit value.
> > We also think it is better to handle this and future EEP discussions
> > on the mailing list so I recommend you all to join
> > that mailing list. Join
> > here http://www.erlang.org/mailman/listinfo/eeps/
> > /Kenneth and Björn
More information about the eeps