by usrusr · 4y ago · 0 comments
(original reply) In Excel, a cell with a formula has two faces, the formula and the result. An implementation of "plain csv, but with a way to run formulas" could simply branch out to using separate files, particularly if you already have an a UI that's good at working with more than one file. Technically, the additional input file would be unnecessary, because all input data could all be in the formula file, with some shorthand for "identity transformation".
(still original wrong thread reply, nothing new below) The more I think about it, the "hashbang part" could even be designed to work as an actual script, sending the file (or files) to an interpreter that produces the result stream to stdout. Add an interface for doing cell by cell interactive updates and you'd have full independence between the implementations of UI and formula syntax.