News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by JAlexoid on Tuesday February 22, 2022 @02:38PM (#30432551)
One of the reasons why I try to avoid C++ is that it's an unopinionated multi paradigm kitchen sink language.

There are great uses and great features, but there are so many of them and everyone has their own opinions.... Even in this thread there's a clear subset of people who "adore" C++ exceptions

Re:Current hardware trends make C++ exceptions harder to jus... by jcelerier on Tuesday February 22, 2022 @04:49PM (#30434370)
So interesting, to me a language being opinionated is the main reason to put it on the do-not-use bin. I strongly believe that the best way to develop is through embedded domain-specific languages adapted to individual problems, and opinionated languages are always way too limiting regarding that.
Re:Current hardware trends make C++ exceptions harder to jus... by JAlexoid on Tuesday February 22, 2022 @06:19PM (#30435259)
Your statement contradicts itself - you're against optionanted languages, but insert an opinionated language(DSL) into an unopinionated language.
Re:Current hardware trends make C++ exceptions harder to jus... by ncmncm on Wednesday February 23, 2022 @12:38AM (#30438034)
No contradiction.

It is not the job of a general-purpose language to insert its own opinions. That is the system designer's job. Fighting with the language's opinions is a recipe for failure.

Re:Current hardware trends make C++ exceptions harder to jus... by jcelerier on Wednesday February 23, 2022 @03:09AM (#30438815)
When it's an embedded dsl you always have the escape hatch of the entire host language - and it is not shocking to use it: being in an eDSL does not mean that you have to agree to it religiously, it's always a case-by-case engineering tradeoff.

Whereas when in an opinionated language and you cannot do what you want... Ugly hacks such as people using bash scripts, mustache templates, etc ... to preprocess their code to get what they want quickly happen.

Re:Current hardware trends make C++ exceptions harder to jus... by atq2119 on Wednesday February 23, 2022 @01:33AM (#30438338)
C++ is opinionated, just not in the same way as other programming languages. That is its strength.

(Perhaps the clearest C++ opinion is "zero cost abstractions")

Re:Current hardware trends make C++ exceptions harder to jus... by zozbot234 on Tuesday February 22, 2022 @03:11PM (#30433031)
There's no such thing as an "unopinionated" kitchen sink language. Language features have all sorts of unforeseen interactions that must be handled somehow, and good high-level design is needed to ensure that the interactions are sensible.
Re:Current hardware trends make C++ exceptions harder to jus... by Koshkin on Tuesday February 22, 2022 @07:17PM (#30435801)
C++ is definitely unopinionated. Its evolution follows the path dictated by necessity, not opinion.
Re:Current hardware trends make C++ exceptions harder to jus... by Rexxar on Wednesday February 23, 2022 @05:01AM (#30439532)
The "necessity" is defined by the three foundational opinions of c++ :

- zero cost abstraction

- system language

- compatibility with C toolchain

Re:Current hardware trends make C++ exceptions harder to jus... by JAlexoid on Tuesday February 22, 2022 @06:22PM (#30435287)
We're in the context of such unforeseen interaction.(Ironic, isn't it)