source-academy / frontend

Frontend of Source Academy, an online experiential environment for computational thinking (React, Redux, Saga, Blueprint)
https://sourceacademy.org
Apache License 2.0
101 stars 164 forks source link

CSE machine in Scheme: Hide make_number calls #2955

Open martin-henz opened 2 months ago

martin-henz commented 2 months ago

Consider the program: (+ 3i 4) Currently we get:

Screenshot 2024-04-22 at 9 09 01 PM Screenshot 2024-04-22 at 9 09 26 PM Screenshot 2024-04-22 at 9 09 39 PM Screenshot 2024-04-22 at 9 09 51 PM Screenshot 2024-04-22 at 9 10 03 PM

I suggest that we change the step sequence by "suppressing" the application of make_number. So (make_number 3i) will just be rendered as 3i in Control, and the next step will have 3i in Stash.

The notion of "suppressing" steps might come in handy elsewhere, too, so it may be a good idea to think about how to do this nicely.