Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Try some variants of the syntax in the enhanced calculator. In the previous example, the sq function has to end with two semicolons to close off both the while loop and the let statement, which is pretty clunky. Can you change the syntax to make it more intuitive? If you add closing symbols to conditional statements if/then/else/fi and loops while/do/done, can you make the syntax of statement lists more flexible?