On 6/10/11 5:25 PM, Michel Fortin wrote:
On 2011-06-10 17:04:42 -0400, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> said:

On 6/10/11 3:34 PM, Michel Fortin wrote:
If you want something to be used everywhere and it is not an
implementation detail, make it part of the language. Implementing what
sounds should be a language feature through a template hack and putting
it the standard library is not going to make people feel good about the
language, it'll remind them of what the language is missing.

The problem with the "hack" label is that it instantly decreases the
level of the conversation. It's the "N" word of programming.

A hack is something that works even though it's ugly and generally cause
people to call for something better. I'm not opposed to using hacks as
long as they're well-encapsulated and not too fragile, but in this case
I find the encapsulation is leaky since you need to litter your code
with Flag!"" everywhere.

https://github.com/andralex/phobos/commit/84c75336a4ef04b4c3b1924d7ac9329e744ab8e7

Andrei

Reply via email to