Originally posted by Volta
View Post
Announcement
Collapse
No announcement yet.
Rust Porting Begins For Intel's "e1000" Linux Network Driver
Collapse
X
-
-
Originally posted by Weasel View PostThat's exactly the problem. Let should only be used for functional languages, which Rust is not. There's a reason they're so cryptic for programmers instead of math nerds. Keep that shit away from structured languages.
- Likes 4
Leave a comment:
-
Originally posted by Volta View Post
I think (and hope) it's not such common when value equals 1. I've just check and incrementation and decrementation in C like way is not possible in Rust. WTF?
Originally posted by Volta View PostI'm not used to beg someone to 'let' me something. The one who chose this word must be some kind of beta
Leave a comment:
-
Originally posted by Weasel View PostThat's exactly the problem. Let should only be used for functional languages, which Rust is not. There's a reason they're so cryptic for programmers instead of math nerds. Keep that shit away from structured languages.
Leave a comment:
-
Originally posted by kpedersen View Post
Exactly. So my point is that perhaps Rust's strengths are not ideal here. It will all just be bindings and unsafe {} sections.
In practice they are 100% equally as safe. Which is completely "unsafe" because all bets are off. Arguably the extra code needed for the Rust bindings "abstractions" open up a potential for more complex data marshalling issues and reduction of type safety.
- Likes 1
Leave a comment:
-
Originally posted by Weasel View PostExcept auto is only used when the type is not specified. And it means automatic type deduction. You don't type it when you specify the type.
In Rust you have to specify both let and the type of the variable if you don't want an automatic type deduction. Which is just cringe.
Also in JavaScript you can use "var" as well, AFAIK. Which is infinitely better than "let".
Leave a comment:
-
Originally posted by mdedetrich View PostConsidering when on the topic of Rust you spent your entire time constantly negatively criticising it without giving it a benefit of a doubt
(like all of the software engineers much smarter and with more knowledge on this topic then you) I can safely say that it represents reality quite well.
- Likes 1
Leave a comment:
-
Originally posted by Weasel View PostAlso in JavaScript you can use "var" as well, AFAIK. Which is infinitely better than "let".
Also using let/var/val is important as it is a variable declaration which should not be mixed/overloaded with a variable definition.
Writing a definition/initialization/assignment "i = 1;" without a specific declaration "dcl int i;" is just bad code and a programming language that allows this is a bad code language. Always use declarations, even bash does this (keyword "local") and IntelliJ complaining to you if you don't do it (rightfully so)Last edited by reba; 19 September 2022, 04:56 PM.
- Likes 2
Leave a comment:
-
Originally posted by Weasel View PostExcept auto is only used when the type is not specified. And it means automatic type deduction. You don't type it when you specify the type.
In Rust you have to specify both let and the type of the variable if you don't want an automatic type deduction. Which is just cringe.
Also in JavaScript you can use "var" as well, AFAIK. Which is infinitely better than "let".
every language has quirks, if you adapt, you wouldn't be bothered if you had to declare variables using [<###>].
- Likes 4
Leave a comment:
Leave a comment: