Post AXHsaj3NjVCtEcBPyC by alfredbaudisch@mastodon.gamedev.place
(DIR) More posts by alfredbaudisch@mastodon.gamedev.place
(DIR) Post #AXHsah554DNT7IxkLA by alfredbaudisch@mastodon.gamedev.place
2023-07-02T09:20:35Z
0 likes, 1 repeats
I'm experimenting with #Rust again, and my eyes always bleed with the "lifetime annotation syntax" - why does it have to use an apostrophe 😩 .&'a mut i32fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {impl<'a> System<'a> for LeftWalker { type SystemData = (ReadStorage<'a, LeftMover>, WriteStorage<'a, Position>);But this time I'll try not to rage quit in digust again. I'll stick until this experiment ends. #rustlang
(DIR) Post #AXHsaj3NjVCtEcBPyC by alfredbaudisch@mastodon.gamedev.place
2023-07-02T09:22:47Z
0 likes, 0 repeats
Another one:- Generics in every language: Vector<MyType>()- Rust: Nope:Vec<u32>::new();This works:Vec::<u32>::new();And this ALSO works:(Vec <u32)>::new();So I can't use the universal language of: Vec<u32>::new();But I can do (Vec <u32)>::new();#Rust #rustlang What kind of syntax is that? For the past 28yrs I used more than 12+ langs in every kind of project & the ugliest language I've seen is Rust.Yes, EVEN UGLIER THAN ERLANG, at least Erlang is consistent and makes sense.
(DIR) Post #AXHsal22NTJtN1ZN9U by alfredbaudisch@mastodon.gamedev.place
2023-07-02T09:47:20Z
0 likes, 0 repeats
DREAM:- Systems programming language w/ the safety of Rust- a package manager- the ecosystem/community size of Rust- C/C++ tooling (debugger and LS)- C/C++ interop- ALL OF THAT with a Ruby-like syntaxThe answer could be Crystal, but unfortunately it has a tiny tiny ecosystem and Windows is a 2nd class citizen and Crystal has probably the slowest compiler on Earth.Nim is probably the answer (it's Pascal-like), but Nim loses on tooling.Other suggestions?#Nim #NimLang #Rust #RustLang
(DIR) Post #AXHsamgUEZGmUlVBq4 by alfredbaudisch@mastodon.gamedev.place
2023-07-02T09:51:49Z
0 likes, 0 repeats
TILRust's `::<>` is called turbofish!https://github.com/rust-lang/rust/blob/master/tests/ui/parser/bastion-of-the-turbofish.rshttps://turbo.fish/#rustlang #rust (thanks @sminez and @mo8it)
(DIR) Post #AXHshXW11ur9TcpFBo by Zergling_man@birds.garden
2023-07-02T15:05:08.036090Z
0 likes, 0 repeats
@alfredbaudisch I am convinced rust deliberately made the syntax as obtuse as possible for a non-esolang. For that reason alone, I do not care for it.