102 karma · joined October 16, 2017
* use a lot of water to build one
* the power is a problem
* the noise is an issue
* the power is coming from non-green sources
* the government could “easily” fix all this with regulations
https://www.seattle.gov/sweetened-beverage-tax-community-adv...
using FormatArg = variant<int, float, string>;
string FormatArgs(const char* fmt, const vector<FormatArg> &args);
template <typename... Args>
string Format(const char* fmt, Args&&... args) {
vector<FormatArg> expanded_args = {args...};
return FormatArgs(fmt, expanded_args);
}
int main() {
cout << Format("Hello {} pi {}", "world", 3.14f);
}
https://godbolt.org/z/v5zo99aGeThat’s the issue right there. How does Tether save its dollars? We can see it in their transparency report[1]. Whether you believe them or not it’s not just cash in a bank account.
* 0.41% Non-U.S. Treasury Bills
* 55.53% U.S. Treasury Bills
* 0.15% Reverse Repurchase Agreements
* 5.81% Cash & Bank Deposits
* 9.63% Money Market Funds
* 28.47% Commercial Paper and Certificates of Deposit
How much of that is liquid and directly convertible to dollars 1:1 in he next 24 hours? Not 100%.
What happens when they start selling billions in Treasury Bills and Commercial Paper to fund redemptions? The market price of those assets will drop.
What if the value of those assets is already below 1:1 because of recent market events?
What if they’re not being as transparent as they say they are?
> As long as they never spend anything from the reserve, this can't fail no matter how unpopular the currency is.
This can easily fail many different ways.
for (auto& [key, value] : persons)
The nested bindings are neat. Don’t think you can do that in c++ yet.I’ve started putting together https://cppbyexample.com as a way for newcomers to learn because pointing them to a reference or outdated examples isn’t helping anyone.