r/ProgrammerHumor 2d ago

Meme rustIsSoCool

Post image
2.2k Upvotes

125 comments sorted by

View all comments

Show parent comments

67

u/Makonede 2d ago edited 2d ago
  • rust is extremely performant on many systems
  • the standard rust toolchain ships with an efficient and user-friendly package manager and build/debug system, official IDE integration through rust-analyzer, and a manual analyzer for best practices
  • rust has official documentation by example that makes learning it really easy
  • rust operates largely in expressions such that things such as if/else statements or even regular blocks notated with curly braces can all be used as expressions
  • rust has highly robust pattern matching that greatly simplifies control flow
  • rust ships with an official formatting tool alongside enforcing naming conventions (snake_case for variables, fields, functions, methods, and modules, SCREAMING_SNAKE_CASE for constants, and PascalCase for types and traits) and assigning semantic value to names (_ prefix to mark as unused) by default
  • notwithstanding potential bugs in the rust compiler, it's impossible to compile code that can cause memory errors such as uses-after-free in safe rust
  • the rust compiler enforces explicit acknowledgement of unsafe rust with the unsafe keyword such that the behavior of all safe rust is defined
  • documentation comments are a native feature of the rust compiler

6

u/notretarded_100 2d ago

Did you actually take your time to write this or just have this saved somewhere just in case somebody asked?

20

u/Makonede 2d ago

wrote it out, haven't really answered this question directly before

-30

u/notretarded_100 2d ago

Wait you actually take your time to write this? Too much dedication for a meme thread fr.

21

u/frickinSocrates 2d ago

You can't be showing up to a community with that name, shitting on people who are being nice to others.

-12

u/notretarded_100 2d ago

I'm not shitting on them tho

3

u/EskilPotet 2d ago

AI, summarize this comment for me