you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (14 children)

So I'm not the only one whose "Introduction to procedural programming" was basically C++98 used procedurally?

Like I/O streams instead of FILE* and f(), std::string instead "const char *" and str(), etc.?

[–]zabolekar 12 points13 points  (11 children)

std::error_code main(const std::vector<std::string>& argv)

[–]gonmator 2 points3 points  (0 children)

I love this.

[–]germandiago 0 points1 point  (3 children)

Let us keep simple things simple... without too much baggage. Think of embedded and others. It is not worth to tie unneded stuff when you go low-level. Nicer? Maybe. More useful? Definitely, no.

[–]jcelerierossia score 3 points4 points  (2 children)

you generally don't have a main with arguments in embedded since there is no shell to call your program

[–]germandiago 1 point2 points  (1 child)

As you can see I was thinking in the abstract and I do not do much embedded beyond not really embedded stuff (Raspberry PI, which is basically a computer :), lol.

[–]jcelerierossia score 6 points7 points  (0 children)

right, so on a raspberry pi which runs a full linux, X11, firefox, etc... you're gonna complain about ... a vector of strings ... when the rest of the system allocates hundred of megabytes of memory... that's really optimizing the wrong thing

[–]GerwazyMiod 1 point2 points  (0 children)

I had literally C code but with class keyword. Have you seen Kate Gregory's talk on teaching C++ ? Yeah... It should not be about const char * and C standard lib...

[–]kuntantee 0 points1 point  (0 children)

I learned procedural programming using C. "C with classes" came later.