LWN.net Logo

A look at C++14, part 1

A look at C++14, part 1

Posted Mar 29, 2013 1:08 UTC (Fri) by HelloWorld (guest, #56129)
In reply to: A look at C++14, part 1 by rriggs
Parent article: A look at C++14, part 1

> It's a little early for April Fool's jokes, isn't it? There's no way you'll ever be able to do something that cool with C++.
>
> If you tell me that the compiler diagnostic on any pipeline error is required to be 20 pages of template instantiations, and that it is impossible for code editors to determine the meaning of such a line before the heat death of the universe, then I might believe you.

There's literally *nothing* even remotely complicated going on here. APIs similar to that one can be done even in severely restricted languages like Java (modulo some syntactic details, that is).


(Log in to post comments)

A look at C++14, part 1

Posted Mar 29, 2013 19:23 UTC (Fri) by danieldk (guest, #27876) [Link]

In fact, Java 8 has streams, which are fairly similar:

http://cr.openjdk.java.net/~briangoetz/lambda/collections...

Of course, conduits/pipes/... in Haskell are still more elegant ;).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds