Andrei Alexandrescu wrote:
A: Use octal!"177"

W: Ugh.

A (esprit d'escalier): If you don't like the universal notation you invented, who will?


Good point. As I recall, we expended an enormous amount of effort working on template syntax, and I certainly feel that

    octal!"177"

is far better than, say:

    octal<"177">.value

but when I compare it to

    0177

that's just hard to beat. A customized syntax is always going to be better than a generic one. The octal syntax is used in several widely popular languages, and is convenient and looks attractive. It's used a lot in dealing with the unix file system.

Reply via email to