Rust thread.
This language is a fucking beautiful beast.
For some reason It clicked instantly for me.
>>59644058
good thread
>>59644058
Fuck man, Rust needs a lot of typing and the book is scaring me
>String::from("A string");
Really?
>>59644855
Rust is a meme. Try implementing a graph data structure in Rust.
>>59645041
And?
>>59645041
Just werks. Your point?
>>59644855
This creates a dynamic (heap-allocated) string from a static (text segment) string.
>>59644855
Rust is a systems language so strings can't be so simple. It's similar to the problem in C++ with const char* and std::string.
&str in Rust is like the const char* in C++ and std::String in Rust is like the std::string in C++.
std::String owns the string memory, &str don't.
Rust is definitely the best language. Too bad it doesn't have lisp syntax, live reloading and debugging.
>>59646726
How does a language have those things?
>>59647411
By being a lisp implementation.
>>59647504
Why on earth would you want to be a lisp implementation?
>>59647557
(you)
>>59644058
>This language is a fucking beautiful
Have you seen the syntax?
Go fuck yourself Rustshill
Elixir/Erlang is superior
>>59649953
Gotards everybody
>>59644855
If you did HtDP book you'd know what a function signature is and thus this syntax would be completely familiar.
>>59649953
Syntax isn't particularly bad compared to the equivalent languages (Java, C++).
>>59650493
>Java
>Systems language
>>59651133
Unfortunately that is the case. It doesn't write bare metal shit but the JVM is more portable than a lot of C/C++ code.