Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For non-lispers (who have at least some programming experience), please read this code and answer the questions.
- 1) Are you able to understand what the program is doing, step by step?
- 2) Do you find this syntax easier to read than lisp?
- 3) If this were a real programming language, would you consider learning and using it?
- The following is the code in question:
- let factorial
- function :int(int n) {
- consider (1, 1) loop
- function :int(int i, int p) {
- if #(i <= n) {
- :loop( #(i + 1), #(p * i) )
- } else {
- p
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement