this can be done because Rust has a loop() so it knows you can only escape via break
Java does the same thing in case of for(;;) and while(true) but not in other cases like while(1 == 1) so it's a...
Type: Posts; User: iopq
this can be done because Rust has a loop() so it knows you can only escape via break
Java does the same thing in case of for(;;) and while(true) but not in other cases like while(1 == 1) so it's a...
Apparently not. You can write:
let x;
x = 1;
print!("{}", x);
the compiler knows that it wasn't used before it was initialized and it will compile and print 1
if you write
Of course not, but it doesn't have a standard HTTP library yet, just some attempts by community members.
On another note, Rust compiler is pretty smart:
fn main() { ...
It's also not the goal according to the developers of the language. The goal is to have a language with the same performance of C++ and better safety than Java while still not having GC. For example,...
to the contrary, most variables are something like
ui_inputSpinBox1 = findChild<QSpinBox*>("inputSpinBox1");
and then later
ui_outputWidget->setText(QString::number(value +...
Yeah, once I discovered languages that don't have null I pretty much stopped being impressed by languages that didn't solve this problem. That's why I didn't like Dart: it's not doing enough to...
it doesn't
both of those examples expand to simple codes when compiled, just a few repeated instructions in the binary
As you know, nobody writes assembly by typing in machine code directly
Each assembly language is a macro language
in other words, most assembly languages have the capability of writing
...
that's what I meant, the assembly language of the Mill is C++
I like x64 myself, but if what the Mill promises is true, you can actually have mobile devices as powerful as desktop computers...
Well, yes, it's the maturity of the borrow checker. But the borrow checker has to be mature because of the interaction of all the features in the language like borrowed slices and so forth.
By...
I wouldn't call Rust a small language. First of all, it has a lot of syntax like for, if, etc. in Smalltalk this is implemented with method calls and then inlined by the JIT (hopefully). Then you...
I think it has the potential to replace C for libraries like OpenSSL because of added safety. At the same time it can replace C++ for performance-critical programs like browsers and media players...
I also got linked here from the Rust subreddit, and I don't understand the hostility. As I understand it, Rust offers something C/C++ can never offer:
Absolute safety without sacrificing speed....