Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love how Rust has so many footguns that you need to read a dozen blogs from no less than a month ago to avoid utter confusion.


Footguns is the exactly what rust doesn't have.

Some might criticise it for forcing you through a complex process to acquire a firearms license, selling you gun with an efficient safety and then insisting that you wear extremely heavily armoured shoes.


I consider footguns to be things that cause me to waste a ton of effort and build architecturally unsound code. The things in the article are actually just basic language concepts you need to understand to be productive.

So to use the foot gun analogy, if you don't know the stuff in the article you wont even be able to pull the trigger.

An actual footgun is something like monkeypatching in python or ruby. Or running for_each with an async callback in javascript.


Now that's a strawman if I've ever seen one.


Quite the opposite. Rust won’t even let you pull the trigger. C++ on the other hand is very much littered with footguns.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: