SethranKada

joined 2 years ago
[–] SethranKada@lemmy.ca 53 points 1 week ago (24 children)

Feels the same whenever a project is written in python, but I uninstall it too.

[–] SethranKada@lemmy.ca 29 points 2 weeks ago (2 children)

There is a function that does what you are asking for.

.unarap_or()

It either unwraps the value or uses a provided default. Personally, i think unwrap() should be renamed unwrap_or_panic() to follow existing conventions and prevent confusion for non-rust programmers.

[–] SethranKada@lemmy.ca 7 points 1 month ago

Honesty good for them. Companies that ban mature content are the worst.

[–] SethranKada@lemmy.ca 33 points 1 month ago (6 children)

Is that the only one with four letters? How cruel. Lol.