[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: file.jpg (105 KB, 1280x720)
105 KB
105 KB JPG
Why are C and C++ considered 'unsafe' if in the end it's the developer's fault if the code goes shit?? Does it make sense to approach RUST or is it just another meme?
>>
>>102425206
>Does it make sense to approach RUST or is it just another meme?
If it actually forced you to be memory safe all the time it would make sense. It doesn't therefore it's a meme. We should reduce LOC and complexity to make better products and to spot bugs more easily instead of inventing new languages that are only safe if the developers doesn't use specific key words.
>>
The biggest reason is that you won't notice if a general style of programming will make something somewhere very unsafe. This is particularly true when the values coming in are not controlled. If any rando can end up assigning a huge value somewhere they are not supposed to, they will eventually. Rust explicitly tells you to fix those things.
>>
>>102425206
Because they don't handhold as much as modern languages.
Which is a realistics comparison when modern languages come with huge base libs and tools bundled together.
C++ especially takes to long to update the language standards. Pretty much all this current criticism has been discussed for decades but came quite late in the language, the main reason "modern C++" is named as such.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.