Reading
https://gitlab.com/sifoo/snigl, some examples of where you could lose readers by section:
- [sni`gel]: example is too deep a dive for a first dive without comments (a few lines “it also multi-threads easily. For example, here’s how to have two tasks write to @out in parallel and wait for both to complete” already would improve things a lot IMO)
- Evaluation: rotl ignores the top element on the stack, but rotr doesn’t? That would be quite surprising. Or do these work on the bottom 3 stack elements??? I also would switch names, given the tendency to show top of stack to the right in stack describing comments.
- Equality and identity has an example using !==, but doesn’t say what it does. I also would introduce != here (I assume it exists)
- functions: in the fib-tail example, explain why you don’t need a fib, and can call fib-tail with one argument on the stack instead.
- iterators: I would expect the sum of 0 through 7 to be 28 (“7 list” produces a list not including 7, I think)