fend
fend copied to clipboard
RFE: Optional implicit `_` at start of input line if it starts with an operator
I've been exploring fend
as a Unixy replacement for the Apple platform calculator Soulver. I bring up Soulver not for the natural language parsing / notebook features, but rather a feature it has for inputting calculations. In Soulver, you can implicitly refer to the result of the previous calculation if you start a new line with an operator.
Consider the following Soulver session:
3 + 5 # 8
* 2 # 16
I know that I can do that with _
in fend, but the implicit result in Soulver helps maintain the "calculator" metaphor and it fits my brain better. Pocket calculators, and every GUI calculator, all work this way.