Re:All C++20 core language features with examples
by fsloth on Wednesday April 07, 2021 @12:32PM
(#26727254)
I also write C++ for a living but feel no threat if I had to suddenly start writing C, C#, Java, Python, Rust, F#, Scala, or what have you. Sure, it would need learning a thing or two but basically they all are driving the same ARM or x86 based compute stack with exactly the same constraints due to computer architecture .
My focus has been to brand myself as "domain expert" in few algorithmic domains rather than "C++" expert so this may affect my point of view, though.
Re:All C++20 core language features with examples
by criddell on Wednesday April 07, 2021 @01:47PM
(#26728285)
> feel no threat if I had to suddenly start writing C, C#, Java, Python, Rust, F#, Scala
It isn't necessarily a threat. I'm pretty comfortable in a bunch of different languages but just enjoy C++ more than the others. To use a car analogy, I have no problem driving automatic but I really like driving stick.
Re:All C++20 core language features with examples
by kazinator on Wednesday April 07, 2021 @12:29PM
(#26727215)
If you don't keep up with all this C++20 material, there will likewise be fewer opportunities for you. They will throw it at you in an interview, to check that you aren't some stubborn C++98 gunslinger.
Re:All C++20 core language features with examples
by criddell on Wednesday April 07, 2021 @01:45PM
(#26728249)
I do my best! I really enjoy working in C++ and it's a pretty exciting time for me when a new standard rolls around and my compiler gets updated to support it.
Re:All C++20 core language features with examples
by p0nce on Wednesday April 07, 2021 @01:56PM
(#26728421)
How long will that take you to assimilate those C++20 features?
Re:All C++20 core language features with examples
by criddell on Wednesday April 07, 2021 @02:13PM
(#26728692)
Years. Some things are obviously useful right away and other things take me a lot longer to grok. For example, rvalue references have been around for a long time now and I still have to slow down when I see && in code.
If C++ use declines, then there are fewer opportunities for me. So you can count me as a member of team C++.