String patterns #28
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.
Blocks
You do not have permission to read 2 dependencies
Reference: twc/ludus#28
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?
For building an Eliza, we have determined that we want & need string pattern matching, not just collections.
The way this will go is using template strings as a mirror. So, consider:
The only unresolved question I can think of right now is whether a binding in a string pattern (including the placeholder) matches zero-or-more or one-or-more characters.
One-or-more is the obvious answer, and I think that's probably a good place to start.
MNL and SCR chatted, and right now we think a zero-char match/binding is actually a different thing.
So bindings in string patterns in this way match more than one character.
Implemented in
5deab18356
. Not closing yet for to do more testing. At current, the following works as expected:I believe this is sufficient for Computer Class.
Closing for now. If testing uncovers bugs, will file bugfix issues.