- Worst thing about 2020 C++ - 2 Updates
- incompatible types in assignment - 1 Update
Jorgen Grahn <grahn+nntp@snipabacken.se>: Aug 15 09:15PM On Fri, 2020-08-14, Sam wrote: > Juha Nieminen writes: ... >> coroutines, but it's much more laborious. Coroutines automatize >> most of this. > Gee, that's neat. Almost as neat as throw specifications. Oh, wait=E2=80=A6 With that reasoning, you could argue that C++ should have stopped evolving with "C with classes" around 1980 ... /Jorgen -- // Jorgen Grahn <grahn@ Oo o. . . \X/ snipabacken.se> O o . |
Jorgen Grahn <grahn+nntp@snipabacken.se>: Aug 15 09:35PM On Fri, 2020-08-14, red floyd wrote: > So if you don't have a need for the feature, don't use it. Just because > it doesn't fit YOUR use case, doesn't mean that others don't like it. > Chill out, dude. He kind of /does/ have a point, though. How do I know I can make my code better by applying some new language feature? There are countless C programmers implementing linked lists right now; we'd just use a std::vector and not even notice. I want new language features to fall into the classes: A - Major and really useful to many people. B - Minor, easy to adopt. C - Fringe features, easy to ignore. I haven't investigated coroutines yet; I hope they are in class A. /Jorgen -- // Jorgen Grahn <grahn@ Oo o. . . \X/ snipabacken.se> O o . |
Jorgen Grahn <grahn+nntp@snipabacken.se>: Aug 15 09:10PM On Fri, 2020-08-14, RM wrote: > } > ... > }; What sources are you learning from, and what's your programming background? I don't know what problem your code should solve, but most solutions don't involve C arrays, new/delete, or inheriting from std::vector. Some of this indicates an influence from Java. If you know Java, you need to forget it while programming in C++. If you want to map identifiers to obfuscated identifiers, I recommend an implementation based on std::unordered_map. /Jorgen -- // Jorgen Grahn <grahn@ Oo o. . . \X/ snipabacken.se> O o . |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment