Exactly! The other wrapper enum I named (Option) is the same kind of concept but with Some(value)
and None
.
Exactly! The other wrapper enum I named (Option) is the same kind of concept but with Some(value)
and None
.
Here’s some examples written on my phone:
match result {
Ok(bool_name) => whatever,
Err(error_type) => whatever,
}
if let Ok(bool_name) = result {
whatever
}
if result.is_ok() {
whatever
}
let whatever = result.unwrap_or_default();
let whatever = result?;
And there’s many other awesome ways to use a Result including turning it into an Option or unwrapping it unsafely. I recommend you just search “Rust book” on your search engine and browse it. Here’s the docs to the Result enum.
It’s a great and probably the best error system I’ve seen, instead of just throwing errors and having bulky try catch statements and such there’s just a result type.
Say you have a function that returns a boolean in which something could error, the function would return a Result and that’s it. Calling the function you can choose to do anything you want with that possible Error, including ignoring it or logging or anything you could want.
It’s extremely simple.
You don’t with Rust either.
RED isn’t worth it compared to the other one since everything will trickle down to OPH anyways, RED has a very mean test and will hate you for searching anything at all.
Raspberry pi’s are never worth it compared to most other things.
Lemmy IS awesome, that doesn’t mean we can’t want it to be better or criticize it. No one said Lemmy isn’t great.
The main Lemmy developers very often don’t have the biggest clue of what they’re doing, and they’ve proven that time and time again. A lot of times they forget normal web practices and rules, and a lot of side things like Jerboa are also just broken.
They also don’t know how to interact with the community or how to be normal people. Let’s not forget they have been working on Lemmy full-time and this is the state we’ve come to, ignoring all the database and security and everything else issues they already had.
I don’t know why you tried to go for a personal jab, my reading comprehension is fine.
I’m obviously asking about what you’re inciting, especially since lemmy.world is a European instance.
what are you even talking about at this point
Fuck everyone who needs it to be legal right? Progress is bad if it negatively affects me in any way shape or form!
Clearly enough people for this to be a point, a big majority of people in the US still do at least in the places I’ve stayed in.
There’s nothing inherently wrong with SMS.
Not to mention a lot of massive companies also use it at every part of the stack, Rust is good at it all and it is beautifully and perfectly suited for tasks like these.