Prev: Repeat a typedef or include a header with the typedef?
Next: needing std::iostream as an array of bytes
From: Hakusa on 20 Feb 2010 16:47 Firstly, this seems like something there'd already be a topic about, but i didn't see it. Also, i'm not sure if this is the right place to ask, but... What C++0x features are most relevant to you? I'm curious about what others consider good features to know, but mostly which they actually want to use. I am personally invested in rvalue references, std::thread, and std::initializer_list. Though, i don't think initializer_lists are crucial to know, they were interesting to add in my programs. That is the type of thing i'm really curious about; the parts of C++0x that have a neat use, whether or not it's the best part. -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
From: Martin B. on 21 Feb 2010 13:19 On 21.02.2010 10:47, Hakusa(a)gmail.com wrote: > Firstly, this seems like something there'd already be a topic about, > but i didn't see it. Also, i'm not sure if this is the right place to > ask, but... > > What C++0x features are most relevant to you? I'm curious about what > others consider good features to know, but mostly which they actually > want to use. I am personally invested in rvalue references, > std::thread, and std::initializer_list. > I think std::thread is an interesting issue: The question is if teams that already use threads will be tempted to use what API worked in the past and what incentives we'll have to change our threading code to std::thread (or adapt it for a new subproject if other project already use a proven API). > Though, i don't think initializer_lists are crucial to know, they were > interesting to add in my programs. That is the type of thing i'm > really curious about; the parts of C++0x that have a neat use, whether > or not it's the best part. > After a quick view of http://en.wikipedia.org/wiki/C%2B%2B0x I'd say that auto, <regex> and default'ed / delete'ed special member functions is what I'm looking forward to as most useful. * auto should help write clearer code * It's a long time sionce I've written anything where a regexp didn't come in hand at one point or the other - and having it in the stdlib saves me from having to pull in boost for just that. * =default / =delete really looks great in that it should allow for writing classes with more correct interfaces from the start. br, Martin -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
From: Mathias Gaunard on 21 Feb 2010 13:19 On 21 f�v, 09:47, "Hak...(a)gmail.com" <hak...(a)gmail.com> wrote: > Firstly, this seems like something there'd already be a topic about, > but i didn't see it. Also, i'm not sure if this is the right place to > ask, but... > > What C++0x features are most relevant to you? Rvalue references, decltype, variadic templates and SFINAE extended to expressions (a small thing, but extremely powerful). Multithreading support is nice as well, but it was already there even if non-standard. Re-using (bad pun intended) the parent constructor is a nice little thing as well. Lambda are disappointing since they're only monomorphic, but I may still end up using them. The new for-loop is definitely nice sugar, even if auto makes it less useful. User-defined literals seem to have potential to be interesting, but I haven't considered anything with these yet. -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
From: Beman Dawes on 21 Feb 2010 13:21 On Feb 21, 4:47 am, "Hak...(a)gmail.com" <hak...(a)gmail.com> wrote: > Firstly, this seems like something there'd already be a topic about, > but i didn't see it. Also, i'm not sure if this is the right place to > ask, but... > > What C++0x features are most relevant to you? I'm curious about what > others consider good features to know, but mostly which they actually > want to use. I am personally invested in rvalue references, > std::thread, and std::initializer_list. > > Though, i don't think initializer_lists are crucial to know, they were > interesting to add in my programs. That is the type of thing i'm > really curious about; the parts of C++0x that have a neat use, whether > or not it's the best part. I'm not sure that's the right question to ask. Viewed in isolation, C+ +0x does have quite a number of neat features. But the most positive impact may well be synergism between features, both new and old, major and minor. I wasn't the first to notice that. Lawrence Crowl described some of the very positive feature interactions in a Google tech talk quite a while ago. So you might want to ask about features that play well together. --Beman -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
From: R Samuel on 21 Feb 2010 13:20 > What C++0x features are most relevant to you? I'm curious about what > others consider good features to know, but mostly which they actually > want to use. I am personally invested in rvalue references, > std::thread, and std::initializer_list. lamda expressions. IMHO, binders are annoying and requiring a separate function/functor for for STL algorithms can hurt code comprehension. -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Repeat a typedef or include a header with the typedef? Next: needing std::iostream as an array of bytes |