1,205 karma · joined Jan 2, 2022 (4y ago) · 235 submissions
comment 4y ago · link · parent
std::fstream s(filename);
if (!s.is_open()) {
std::cout << "failed to open " << filename << '\n';
}
No one should ever have to use factories, they really suck. Too much boilerplate, too much code duplication.comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
> This indicates that existing mechanism in compilers may have difficulties with a block model. So we only require it to be implemented for function bodies and make it implementation-defined if it is also offered for internal blocks.
How will that work?
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
> It's the best way to save/grow an emergency fund. And if you can hold indefinitely, then you can grow true financial freedom by saving even just 5 dollars at a time, anytime you can spare to do so in Bitcoin. Don't think of it as an investment, think of it as a savings account that works and doesn't lose buying power thanks to inflation.
comment 4y ago · link · parent