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

> a whole bunch of the footguns

Could you expand on this in the context of Rust?



Sure thing! Footguns might be the wrong word, and I know as a low level language Rust is insanely safe, but for a high level developer it's type system is gonna mean spending a lot of time in the compiler figuring out type errors, at least initially. That might not be a traditional footgun, but if you're just trying to, I dunno, build a crud api or something, its gonna nuke your development time.

Please don't read this as "rust is difficult and bad", I definitely don't think it is! But its a low level language, and working with it means dealing with complexity that for some tasks just might not be relevant.


I find figuring out type errors is usually less work than figuring out the runtime bugs they prevented.


I agree, but for something like the CRUD app example I made bringing in pydantic or something would solve that. Rust's type system is a lot stricter because it's solving problems in a space that doesn't touch a lot of Python developers.


In all fairness Rust was never meant for writing database interfaces, more like storage engines.




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

Search: