3 ms·
> However, if your program compiles _and_ the logic is correct, there's a high likelihood that your program won't crash (provided you handle errors and such, yo
by irishcoffee 11mo ago
> However, if your program compiles _and_ the logic is correct, there's a high likelihood that your program won't crash (provided you handle errors and such, you cannot trust data coming from outside, allocations to always work, etc).
That is one hell of a copium disclaimer. "If you hold it right..."
- kibwen 11mo agoRust certainly doesn't make it impossible to write bad code. What it does do is nudge you towards writing good code to a noticeably appreciable degree, which is laudable compared to the state of the industry at large.
- irishcoffee 11mo agoRust is just a tool. It’s as fallible as any other tool. I wish we took it off the pedestal and treated it as such.
- steveklabnik 11mo agoAre all tools equal in all dimensions or can they be compared for fitness of purpose?
- estebank 11mo agoA hand saw, a table saw and a SawStop are all tools, but they have different characteristics even though they all are meant to cut the same wood.
- irishcoffee 11mo agoAda, C, and lisp are all tools, but they have different characteristics even though they are all meant to cut through the same problems.
- yuriks 11mo ago...yes?
- irishcoffee 11mo agoA tool is a tool. I didn’t realize I needed to spell it out. Cloudflare used a tool, broke parts of the internet.
- bigstrat2003 11mo agoI feel like you're attacking a strawman here. Of course you can write unreliable software in Rust. I'm not aware of anyone who says you can't. The point is not that it's a magic talisman that makes your software good, the point is that it helps you to make your software good in ways other languages (in particular C/C++ which are the primary point of comparison for Rust) do not. That's all.
- irishcoffee 11mo ago> The point is not that it's a magic talisman that makes your software good, the point is that it helps you to make your software good in ways other languages (in particular C/C++ which are the primary point of comparison for Rust) do not. Citation needed.
- deleted 11mo ago[deleted]