owsei

joined 1 year ago
[–] owsei@programming.dev 1 points 9 months ago* (last edited 9 months ago)

it's just a way to use map with a reference instead of the value, by what I understood.

could be usefull for logging values in a Result so you can see it. However I think you can already do that by just mapping and returning the variable.

[–] owsei@programming.dev 8 points 9 months ago

It may not work directly, but there's always a way to misdirect it, like a vm!

[–] owsei@programming.dev 1 points 9 months ago

rebuild stuff

I've remade a temperature converter cli 3 times in rust. Just to understand enums, structs and the borrow checker. Then I made an http server, that acted as a library's book borrowing system.

[–] owsei@programming.dev 2 points 9 months ago

thank you very much.

By undefined I meant the usage of undefined in the language, however you phrased it way better :)

[–] owsei@programming.dev 7 points 9 months ago (2 children)

That's what I hate about javascript, it doesn't warm you about undefined behavior, it just throws.

I used to not really care about that, but after learning C and Rust, damm, I wish there where result types everywhere

[–] owsei@programming.dev 5 points 1 year ago

I loved math, so a friend of my mother said I could make the computer do maths for me.

6 years later and I'm still amazed computers do what I tell them. And now that I work with this everyday, I'm even more amazed anything works at all.

view more: ‹ prev next ›