December 15, 2013
On 12/14/2013 8:22 AM, "Ola Fosheim Grøstad"
> Regarding using the not-operator for non-not-operations: anything would be
> better than reusing operators that are commonly used to affect control-flow. It
> makes it difficult to comprehend control flow when you skim code you are not
> familiar with. "not" tends to be used for completely changing the flow of a
> program so those "!" are attention-seekers when trying comprehend unfamiliar code.

Since C uses * for thoroughly unrelated operations multiply and indirection, and I've never heard a complaint about that, I don't see the rationale that ! would be confusing to use as a binary operator as compelling.


> 3. No high performing authoritative compiler suite.

Yes, there is one, and it is run automatically on every pull request to the compiler & libraries.

December 15, 2013
On Sunday, 15 December 2013 at 04:55:47 UTC, Walter Bright wrote:
> On 12/14/2013 12:37 PM, "Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang@gmail.com>" wrote:
>> "<>" is much more visually distinct,
>
> Only in trivial code. If it is mixed up with shifting and comparison operators, which are hardly rare, it becomes hellish.

I used to find !() quite ugly as well, and <> nice, but that came from being used to how other languages did templates. In D template parameters can be much more complex which I feel the !() deals with better. For the ones that aren't complex, they're usually just a single argument and foo!arg handled that just fine.
December 15, 2013
On 12/14/2013 11:32 AM, Chris Cain wrote:

> But still, _what exactly_ should be used instead of the "not-operator"?
> "Anything" is too vague and not true. You probably can't use these:
> ][+=-_,.|`\/"'><;:}{%^&*

How about something closer:

    s = i.to¡string;

:p

Ali

December 15, 2013
On Sunday, 15 December 2013 at 05:28:51 UTC, Ali Çehreli wrote:
> How about something closer:
>
>     s = i.to¡string;
>
> :p
>
> Ali

I know you were just kidding, but honestly if it didn't take some extra setup to get the average American keyboard to type like that, I think "special" (using that a bit liberally) characters like that would work out okay. I really wish we could change the keyboard to support that kinda thing... maybe like how the Macs do it. But, alas, it's never going to happen and it makes me sad :(
December 15, 2013
On Sunday, 15 December 2013 at 05:40:17 UTC, Chris Cain wrote:
> On Sunday, 15 December 2013 at 05:28:51 UTC, Ali Çehreli wrote:
>> How about something closer:
>>
>>    s = i.to¡string;
>>
>> :p
>>
>> Ali
>
> I know you were just kidding, but honestly if it didn't take some extra setup to get the average American keyboard to type like that, I think "special" (using that a bit liberally) characters like that would work out okay. I really wish we could change the keyboard to support that kinda thing... maybe like how the Macs do it. But, alas, it's never going to happen and it makes me sad :(

What about using a preprocessor? Wouldn't be hard to have it turn all ¡ into !.
December 15, 2013
On Sunday, 15 December 2013 at 07:26:30 UTC, logicchains wrote:
> What about using a preprocessor? Wouldn't be hard to have it turn all ¡ into !.

There is a Venn diagram of "things we can do" and "things that are really bad ideas". The overlap is surprisingly large.
December 15, 2013
On Sunday, 15 December 2013 at 07:26:30 UTC, logicchains wrote:
> What about using a preprocessor? Wouldn't be hard to have it turn all ¡ into !.

That's my Spanish program buggered, then.
December 15, 2013
On Sun, Dec 15, 2013 at 8:59 AM, Joseph Rushton Wakeling <joseph.wakeling@webdrake.net> wrote:
> On Sunday, 15 December 2013 at 07:26:30 UTC, logicchains wrote:
>>
>> What about using a preprocessor? Wouldn't be hard to have it turn all ¡ into !.
>
>
> That's my Spanish program buggered, then.

In Spanish D, we put ¡ *around* template instantiations: auto m =
map¡(x => x+1)!(myRange);

December 15, 2013
On 12/13/2013 1:04 PM, Andrei Alexandrescu wrote:
> Facebook uses Egyptian braces in its D code.

Egypt, Egypt! by The Egyptian Braces

http://www.youtube.com/watch?v=qjFs9CPGhts

(I actually have this record in the basement somewhere.)
December 15, 2013
On Sunday, 15 December 2013 at 07:56:12 UTC, Brian Schott wrote:
> There is a Venn diagram of "things we can do" and "things that are really bad ideas". The overlap is surprisingly large.

You win my "quote of the day award". Your prize is ... the fact that you put a smile on my face! Enjoy.