4 ms·
I've seen it be really awkward with whitespace, usually when I think it's not recalculating it's because of a stray or missing space somewhere that's keeping it
by ketralnis 13y ago
I've seen it be really awkward with whitespace, usually when I think it's not recalculating it's because of a stray or missing space somewhere that's keeping it from seeing that something is an equation (it tries to auto detect between equations and markdown).
The common case for me is that I keep a very short-term personal ledger in it, just the stuff that hasn't hit the bank account yet, like this:
chequing = (1,000 # current balance
- 2 # coffee
- 15 # groceries
+ 2 # Joe paid me back
) => 985
But messing up the spacing in any way, for instance like this:
chequing = (1,000 # current balance
- 2 # coffee
- 15 # groceries
+ 20 # Joe paid me back
) => 985
(note one fewer space before the closing paren) and now no changes to the values inside the parens take effect on the total after the => (which for non-Calca-using spectators should always auto-update based on changes). I copy-pasted this out of Calca just now and you can see the the total is incorrect.
Sometimes this messes up the syntax highlighting so that it's obvious, but usually it doesn't, and I'm left wondering why it's not updating.