kattenluik

joined 1 year ago
[–] kattenluik@feddit.nl 1 points 10 months ago

At least in the Netherlands, there's a bunch of places you can print including your own school for free.

[–] kattenluik@feddit.nl 3 points 10 months ago* (last edited 10 months ago)

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.

[–] kattenluik@feddit.nl 1 points 10 months ago

Exactly! The other wrapper enum I named (Option) is the same kind of concept but with Some(value) and None.

[–] kattenluik@feddit.nl 1 points 10 months ago* (last edited 10 months ago) (2 children)

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.

[–] kattenluik@feddit.nl 4 points 10 months ago* (last edited 10 months ago) (11 children)

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<bool, Error> 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.

[–] kattenluik@feddit.nl 5 points 10 months ago

You don't with Rust either.

[–] kattenluik@feddit.nl 6 points 10 months ago

The answer to your "argument" is by the definition of identity it definitely could be, but this doesn't matter much does it? The reason I called you unreasonable is because you seem like you've very clearly made up your mind and as such there's no point talking to you especially with your seemingly bad intentions.

[–] kattenluik@feddit.nl 4 points 10 months ago (2 children)

life is not this complicated dude, you're unreasonable.

[–] kattenluik@feddit.nl 2 points 10 months ago (5 children)

"Furry" is just yet another accepting group that is easy to get into for people who feel like they don't belong anywhere and others. It's quite simple and the same as many other things.

[–] kattenluik@feddit.nl 1 points 10 months ago

Luckily the average person doesn't care much about Amazon at all, people in the Netherlands still very much prefer physical stores and bol.com

[–] kattenluik@feddit.nl 6 points 10 months ago (3 children)

They're rising in popularity in the Netherlands despite having the same delivery as any other website, things are usually just cheaper or more available on Amazon.

view more: ‹ prev next ›