Timeline for answer to What can I use instead of the arrow operator, `->`? by Greg Hewgill
Current License: CC BY-SA 2.5
Post Revisions
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 7, 2018 at 1:25 | comment | added | ATL_DEV | @TimSeguine If you ever want to see pretty code, then look at the documentation for inside the Macintosh. I think they invented CamelCase. Very descriptive variable names and elegantly formatted code. They managed to make their later C code almost as gorgeous as their earlier Pascal code. | |
| Aug 6, 2018 at 9:13 | comment | added | Tim Seguine | @ATL_DEV I'd argue that a lot of the ugly stuff isn't considered idiomatic anymore, but unfortunately that doesn't mean you can afford to not be familiar with it as a practicing C++ programmer. Also the syntactically nice path is often not the semantically nice path, but that also has been getting better not worse. But then again I have C++ Stockholm Syndrome. | |
| Jul 9, 2018 at 19:54 | comment | added | ATL_DEV | Boy, after many years of c# programming, going back to c++ is not only cognitively taxing, the c++ syntax is just ugly and yucky. I feel like taking a shower after using it. Programs written in c and c++ just encourage bad programming. Apple, pre-unix, struggled to make the language as pretty as Pascal. | |
| Jun 19, 2013 at 3:35 | comment | added | Sellorio |
you can also do a[0].b instead of (*a).b. But it wouldn't be as properly structured.
|
|
| Oct 21, 2008 at 10:15 | comment | added | Konrad Rudolph |
Overloading issues are a lot less unusual than you think. Not long ago, STL implementors had no overloaded -> operator for some iterator types so you had to use *.. Many libraries define them inconsistently. Becomes really annoying when you work with templates and don't know the precise type.
|
|
| Oct 21, 2008 at 10:11 | vote | accept | P-A | Current Rep:195-Rep Cap:200 | |
| Oct 21, 2008 at 10:10 | history | edited | Greg Hewgill | CC BY-SA 2.5 |
added 83 characters in body
|
| Oct 21, 2008 at 10:02 | history | answered | Greg Hewgill | CC BY-SA 2.5 |