Distinguish between functions and procedures? #26
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#26
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Just chatting with @mynt about Ludus with the upcoming first-demo Playtime, and it occurs to me that rigorously distinguishing between procedures (side effects, no return value) and functions (no side effects, return values) may well be extremely useful pedagogically.
Here's one way we could do that:
to
special form, distinct fromfn
(thanks, Logo!)to
names must end with a bang:forward!
fn
names must not end with a banglet
bindingto forward! (...) -> ...
and functions arefn sin (...) -> ...
I suspect this will be a help, especially in early learning.