Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++

Name: Anonymous 2008-09-17 13:47

1) Why do people not like C++?
2) Is C++ a good language to learn programming? Mind you, you don't need to use any of the advanced features.

Name: Anonymous 2008-09-24 9:04

>>50
Admittedly. I always used to use boost::bind over lambda, simply because it wasn't as fucking insane. Bind lets you hand curry functions which is almost as good as a closure. It's still a fucking mess of hacks, but what from Boost isn't? Dealing with shit like that is your punishment for using the broken language Sepples in the first place.

>>52
Not really. Functions are 1st-class types in C++, ie, int(*main)(int,char*[]), or the slightly more dubious int(*make_counter(int))() which is the signature of a function which takes an int and returns a pointer to a function which takes no parameters and returns an int.

The problem with using raw function pointers in C/C++ is that there's no real way to attach state to them without doing it by hand (with a function object). But they are still first-class citizens, which I'd argue is completely different from Java's anonymous class hack (because Java makes me weep at night).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List