ketmar:
additionally to all bearophile said, there is another
interesting thing in D: special string literals for hex data.
immutable ubyte[] n = cast(typeof(n))x"deadf00d";
or even:
immutable ubyte[] n = cast(typeof(n))x"de ad f 0 0 d";
spaces doesn't matter, only digits do.
The problem is that cast. No one wants a string, most people want
a ubyte[].
See:
https://issues.dlang.org/show_bug.cgi?id=3850
https://issues.dlang.org/show_bug.cgi?id=5909
https://issues.dlang.org/show_bug.cgi?id=10454
Bye,
bearophile