docs
docs copied to clipboard
DOC: various peculiarities of make bitset!
@meijeru commented on Tue Apr 18 2017
-
charset
is shorthand formake bitset!
except it does not covermake bitset! <binary>
. This does make sense sincecharset
suggests we deal with code point numbers, but it is useful to point out. -
charset 5
makes a single-byte empty bitset,charset #"^E"
makes#{04}
, BUT bothcharset [5]
andcharset [#"^E"]
make#{04}
. In other words,make bitset! <integer>
is treated as storage reservation, as with allseries!
values, althoughbitset!
does not belong toseries!
. It is questionable which kind of (in)consistency is less confusing for the user. In any case, the chosen solution has to be documented... -
charset [32 - #"Z"]
is allowed, in other words, integers and code points may be freely mixed in the spec block.
@meijeru commented on Wed Apr 19 2017
Point 3 is solved by the fixes to #2587
@dockimbel duplicate of #194 👀