News for hackers. Stuff that matters.
Re:Coroutines are now in Clang trunk, libc++ by jcelerier on Friday May 26, 2017 @10:54AM (#14424454)
> It clashes with nearly every point on the Zen of Python

I'd argue that C++ is more pythonic than Python. For instance:

> Explicit is better than implicit.

Since when is dynamic typing more explicit than static typing ?

> Errors should never pass silently.

Well guess what, with C++ they don't even pass compilation.

Re:Coroutines are now in Clang trunk, libc++ by mjburgess on Friday May 26, 2017 @11:04AM (#14424536)
Since dynamic typing and static typing are not the same thing.

"Dynamic" doesnt mean hidden. It means types are features of objects at run time.

"Static" doest mean explicit. It means types are rules the compiler applies to the program text.

Re:Coroutines are now in Clang trunk, libc++ by disconnected on Friday May 26, 2017 @11:52AM (#14424904)
>> Errors should never pass silently.

> Well guess what, with C++ they don't even pass compilation.

int * a;

*a = 5;

Segmentation fault. Oopsy.

To be fair, "g++ -Wall" does complain that "a" is not initialized. But it is a warning, not an error.

(And don't tell me that "you are not supposed to use pointers". They exist, someone is going to use them and proceed to shoot themselves in the foot.).

Re:Coroutines are now in Clang trunk, libc++ by Veedrac on Friday May 26, 2017 @11:14AM (#14424610)
I've just been debugging/fixing a bunch of C++ code that was incorrect due to a bunch of implicit casts and normally-invisible undefined behaviour, neither of which would have been possible in Python. I am not convinced.