logoalt Hacker News

iFreilicht • yesterday at 10:20 PM • 1 reply • view on HN

Very interesting concept! It reminds me of Hazel (https://hazel.org/) which takes the idea further and into the editor; any program written in it can be partially evaluated, even if variables or even part of the syntax are missing. Missing parts are called "holes", and those are preserved during evaluation so that something like

abs( + 2 * 3 - 10)

becomes

abs( - 4)

which is great fun. My first attempts using this showed me that if you're not used to this, it actually gets pretty confusing quite quickly, but I guess it can be learned.


Replies

fmbb • yesterday at 10:30 PM

Is that a unary minus denoting a negative number or a binary minus yielding a function with one hole?