Pushing the edge of ISSUE! for hex representations
In REBOL, we use the binary! datatype for binary values, and they are represented in source code in variations of the form:
In R2, we wanted to easily support integer representations in hex, such as those used for HTML color values. So we allowed the use of the issue datatype, in the form:
And, we supported simple conversion to integer:
That made some code easier, so we decided we would also support:
to return an issue for that integer, in hex format.
That's as far as we went in R2. It should be noted that issues are not a binary datatype, they are a string (character) datatype. This is legal:
In R3, we allow conversion to binary of other scalars, such as:
>> to-binary 1.0
>> to-binary $1.0
and, as a result, this casual usage of issues has grown:
>> to-hex 1.0
>> to-hex $1.0
But, this was a bit accidental. It did not come from a design goal.
We need to debate this practice and make a conscious decision if it should be supported or not. Although this form looks simple enough to convert, it actually isn't (because issues are strings, not binaries). So, allowing these issue formats adds more code to the REBOL executable than you'd expect. They are not freebies.
Let's decide this.