-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add infix pattern for consing #609
Comments
Can we name it
|
Yeah, aligning with |
Not 100% sure that we need |
OTOH |
IMO a pattern in the It is a known pitfall for beginners elsewhere, for instance in Java, to write String acc = "";
for (...) {
acc += foo();
} because |
I don't see why |
My opinion that if you need consing to EDIT: if someone migrates EDIT: not that |
Also, this is perhaps a little off-topic, but code like |
I understand performance considerations, but I'm not convinced. When migrating from Besides there are myriads of use cases where inefficience of |
We can add
which mimics what
(:)
does for lists. Presumably it could provide an easier migration route fromString
toText
.The text was updated successfully, but these errors were encountered: