Originally posted by RahulSundaram
View Post
Announcement
Collapse
No announcement yet.
Rust Porting Begins For Intel's "e1000" Linux Network Driver
Collapse
X
-
Last edited by Volta; 19 September 2022, 10:48 AM.
-
Originally posted by Volta View Post
So limit them to pre-incrementation. Problem solved.
Example:
PHP Code:var i = 10;
i = i++;
// Is the variable i now 10 or 11?
// Increment before assign or assign before increment?
- Likes 8
Comment
-
Originally posted by Anux View PostRust is also a functional language.
I honestly don't understand how you guys where ever able to learn any programming language, if you already hang up on such a simple thing like let. I'm just a hobby programmer and needed nothing else than one code example to get how this works.
- Likes 6
Comment
-
Originally posted by RahulSundaram View Post
Every other language has other keywords like var or let instead since they don't have the legacy baggage where the same keyword can mean different things.
Comment
-
Cool, I'm interested to see what new types and abstractions can be built around the kernel interfaces to make Rust productive for driver writing. A lot of people are cynics here, but what I see is an opportunity to have less experienced driver writers publish less-broken drivers than they would with C.
- Likes 4
Comment
-
Originally posted by Volta View PostI've just check and incrementation and decrementation in C like way is not possible in Rust. WTF?
- Likes 9
Comment
-
-
Originally posted by Volta View Post
So, there's 'auto' keyword already used in those languages or what? If no, then there's no explanation why it cannot be used instead.
- Likes 8
Comment
-
Originally posted by Volta View Post
It can be made defined behavior, so it will always increment before assignment, can't it?
The question is basically why does Rust have to carry all this C garbage from 50 years ago.
- Likes 5
Comment
Comment