Regarding hex strings

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Thu Oct 18 17:14:20 PDT 2012


On Thu, 18 Oct 2012 12:11:13 +0200
"foobar" <foo at bar.com> wrote:
> 
> How often large binary blobs are literally spelled in the source 
> code (as opposed to just being read from a file)?


Frequency isn't the issue. The issues are "*Is* it ever needed?" and
"When it is needed, is it useful enough?" The answer to both is most
certainly "yes". (Remember, D is supposed to usable as a systems
language, it's not merely a high-level-app-only language.)

Keep in mind, the question "Does it pull it's own weight?" is for
adding new features, not for going around gutting the language
just because we can.

> In any case, I'm not opposed to such a utility library, in fact I 
> think it's a rather good idea and we already have a precedent 
> with "oct!"
> I just don't think this belongs as a built-in feature in the 
> language.

I think monarch_dodra's test proves that it definitely needs to be
built-in.



More information about the Digitalmars-d mailing list