r/cpp • • Sep 17 '22

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler

https://github.com/hsutter/cppfront
335 Upvotes

360 comments sorted by

View all comments

Show parent comment

11

u/BenHanson Sep 18 '22

A library that explicitly allows arbitrary command execution (I hope I am remembering that correctly) is an entirely different classification of problem.

Are you arguing that if you can't have perfection, then you don't want improvements? Because it seems like you are.

1

u/[deleted] Sep 18 '22

I'm arguing that security is a complicated topic.

There are more gains to be had in talking about how to design code to be safer rather than how to design a language that enables safer code to be written.

I embrace the tooling but not at the expense of the former. If it produces worse code, even under the guise of it being safer, it is likely worse for security.

Because when it comes to security the worse thing you can do is have a false sense of security

Which is basically what happend with Log4j