There was the idea in a previous discussion to update an existing book with SNAP blocks.
There is a book called Simple Scheme written by famous people:
i went through the first 100 pages and created some SNAP blocks along the ride/reading. You can take a look here:
The first 6 chapters of Simply scheme explain programming in general, but with a focus on introductory scheme/LISP. It is focused on explaining scheme keywords and their usage on a prompt/command line. That is useful, if you want to learn scheme, but does not fit into nowadays Scratch/SNAP books, which help you quickly to build an application (mostly w/o understanding the CS behind it)
Simply scheme is more like BJC for grandparents, who still want to use a command line.
Here are my 2 points when going through the book.
- Expectation in SNAP is that any Block on the screen can be executed and it returns a result
in Scheme you expect that from the command prompt inside round brackets ()
So I created the blocks with prefix notation, which feels already "schemish".
But the main syntax of scheme if left out, so I build a "scheme list SNAP block", which uses the first element as a function and applies it to the next elements as arguments.
(func parameter parameter .... )
So there are 2 types of blocks for the authentic scheme feeling. The rebuild SNAP blocks for the primitives and a generic Scheme brackets simulation SNAP block, which mimics the command line a bit better.
This scheme block fails so far to deal with quoted strings, which occur in CHAPTER 5 ff.
There is no quote in SNAP (besides ringify) as far as I understand it.
So the mimicry of scheme is not complete, and I am not sure yet, if there is some value in building a complete scheme keywords implementation in SNAP. Maybe it would help to grasp the very simple syntax and the concepts of scheme/Lisp. It probably also helps to get deeper into functional thinking.
- Converting the book Simply Scheme into a SNAP book
The whole discussion was about creating a SNAP book. If the scope of the book was an introduction into Scheme with SNAP, the book could stay like it is and we would need only to enhance the book with SNAP blocks, which imitate scheme.
(A SNAP program built with Scheme Blocks could be used to create executable scheme code. )
BUT: such a book would be useful only for advanced students interested in functional programming and Scheme, NOT for SNAP beginners. And this is where the discussion started.
I would contribute to such a book, but I am not sure, if there really is a demand for that.
I think, "Simply scheme" cannot make it to become a real SNAP starter book. That would mean it needs to be rewritten completely in my humble view.
This discussion was started with my interest in functional programming. I only started with the first chapters, but will continue with Functions as Data. Now its finally getting interesting.