Allow multiple patterns with %, e.g. (% x y = (f) (z . t) = (g x) in … or (w) = (h y) in … #2
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: suzanne.soy/phc-toolkit#2
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?
The
%
i.e.let … in …
form could support several cases, amatch
does. The general syntax would be(let (~seq or (~seq bindings … = expr) … (~optional in) body …) …)
, with the firstor
optional. If the form directly starts withor
without any binding nor body, then it should not consider that there is a successful empty match with an empty body at the beginning, but instead just strip the firstor
. If empty bodies were allowed, to have an empty match (which will always succeed and therefore make what follows dead code), one could write(let in or dead-variables = (dead-code) in dead-code)
to disambiguate.Here is an example use: