|
|
|
|
|
by jmholla
1147 days ago
|
|
I agree. This whole page reads like nonsense to me. One easy example to point out: > # Optimized for AI & Autocomplete
> ```
> f a b
> . f = | x -> y -> x \* y
> . a = 1
> . b = 2
> ```
> Scrapscript encourages wishful thinking[0].
>
> Declare your goal up-front, and let your tooling make educated guesses about how to get there.
What does the title, example, and text have to do with each other? None of them seem to be talking about the same thing. What does AI have to do with this? How are these single character variable enable autocomplete? What does wishful thinking have to do with anything here?I feel like I took crazy pills. Or maybe this is what having a stroke feels like. [0]: https://wiki.c2.com/?WishfulThinking |
|
For this specific example, many languages have constructs like this:
Scrapscript flips things around: 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!