« first day (3866 days earlier)      last day (1090 days later) » 
04:00 - 11:0013:00 - 00:00

4:48 AM
string vs char*
Which one's better and why
 
 
4 hours later…
8:45 AM
Morning
 
nwp
9:31 AM
@Agent_A That's a question for this room.
 
nwp
9:52 AM
I miss TypeScript's type narrowing. Why does C++ not have that?
std::variant<int, string> v = "hi";
if (v.index() == 1) {
    return v.size();
}
It'd be so neat.
 
nwp
10:07 AM
if (const auto s = std::get_if<string>(&v)) {
    return *s;
}
I guess that does the same thing, but still.
 
04:00 - 11:0013:00 - 00:00

« first day (3866 days earlier)      last day (1090 days later) »