|
|
|
|
|
by surprisetalk
1147 days ago
|
|
Yeah, I'm hoping to put out a more readable guide soon! I didn't have the time/energy to put much of the necessary explanations and groundwork in there. For this specific example, many languages have constructs like this: let x = 1 in f x
Scrapscript flips things around: f x . x = 1
I stole the phrase "wishful thinking" from the SICP lectures, where Sussman encourages writing the important parts first as if the details existed. I think this syntax encourages writing the big-picture ideas first.For AI/autocomplete, tools like Github Copilot currently have to guess what you want from all the parts (e.g. variable names) you put on the table. By putting the variables last, the editor tooling can create boilerplate for your variables as you type. Let me know if there's anything else that might need extra explanation! |
|