by abirch · 1y ago · 0 comments
priceIncrease := (newPrice - oldPrice) / oldPrice var trump_tariff bool
if priceIncrease > 1.0 { trump_tariff = true }
const trump_tariff = priceIncrease > 1.0
also saves you from not initializing the variable in the default/other case. :) const
I feel you may underestimate how often they change.I wonder if they will just allow their suppliers to add in an additional “my tariff costs” number, which the supplier can compute however they want and be responsible for. (This would be on top of the main tariff price, the one paid directly by Amazon, which of course they’ll have receipts for).
I mean, passing along tax information is a political act (in the same way not showing items on the shelf with sales tax, and then including it on your bill is an anti-sales-tax political statement—the point is to blame the government for an annoying surprise), but it is (I think, at least) widely seen as sort of… normal acceptable behavior in the US.