>.unwrap()
.unwrap()
good. I hate hidden error paths.
>Using unwrap
>Not matching like a chad.
ngmi
>errno = 0; int res = func(); if (!res) { perror("error calling func()"); exit(1) }
using std::optional;
template
struct based_optional : optional {
using optional::optional;
operator T() {
return **this;
}
};
what an ugly language
>not using match, ? operator or unwrap_or
Like i have time to decipher all these Ts, asterisks and semicolons and shit
Rust is hardly any better, the crazy symbols are just in different places.
Oh i thought that was rust
that's seeples, mate
rust is nice
go is ugly
No one writes C++ like that in the industry. Rust programmers do though.
C++ like what? Templates? Are you serious?
That's "modern C++" and it looks exactly as shit as Rust
nooooooo you can't just unwrap, you need to error check!!!!
Wait until you see modern golang with the if err == nil everywhere
Or modern C with unreadable macro spam and (void *) casts everywhere
>unreadable macro spam and (void *) casts everywhere
so...C?
who calls a programming language the same as a fungi nobody wants
This guy thinks metal rust is a fungi
It's no different from letting a function throw an uncaught exception in another language. Rust just makes it explicit.
There is, in fact, a fungus called the rust fungus. And the rust programming language is named after it.