"welcome to the c++ spittoon, how const are you"
user_option there is an enum, so it doesn't really have to be const, but what the hell
also, this is embarrassing because I never put braces on the same line as the function declaration
"grace, is this const correct"
"fuck, I hope so, it can't get any constier"
@BestGirlGrace add more consts
make it const const
@ben I don't think I can make it any more const
@BestGirlGrace make me const
@ben I dunno, you seem like a mutable kinda guy
@BestGirlGrace i’m trying to come up with a good pun for this, but i’m just staring at it in consternation
@BestGirlGrace okay, so it returns a constant pointer to a constant string?
@violet Yeah. Though, returning a constant pointer doesn't really change much.
@BestGirlGrace yeah, though, why doesn't it return a reference? Is it because it can return a nullptr?
@violet This one can, yeah. It's possible for the option to not be found, so you either get the thing or a nullptr.
@BestGirlGrace hmm. Could use an optional there, but in all honesty probably doesn't make a difference :)
@violet Yeah, I originally used an optional, but you can't put references in an optional (or most stl containers) and returning an optional pointer seemed redundant.
@BestGirlGrace ah, always forget about that.
@BestGirlGrace walks in speaking Java like “const, is that like final?”
“I’m *ppft* sorry *pffft* ma’am *plplt*, I *ptt* can’t *pflft* understand *fft* your *pflft* accent *pblflflt*”
Don't let the name fool you. All the pornography here is legal, and much of it is hand-written. No fascists, no bigots.