Rust is very comfy so far! Wrote what the Rust book suggests writing. If anyone knows Rust better than me please rate this code, it’s probably shit

@fugger See, I don't get why you call this comfy. Similar D code with similar performance and memory-safety would be so much comfier and so much easier to read

@fugger If stdin is closed such as from a ctrl-d read() returns 0 immediately so you get an empty string, otherwise you always have at least a \n

Idk how the rust code handles that

>not a fan of garbage collectors
I thought you liked Go, it's garbage collected. You can disable it in D but then you have to write things a bit more like rust

@applejack also the if statement not having brackets just looks strange to me it's understandable and not that bsd of course but it's just cursed to look at
Follow

@fugger There was a time I even added them to if statements in Lua. Now I'm pretty used to either. I still add them when I do rust though

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.