Skip to content
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

Drop most string operators #801

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Drop most string operators #801

merged 2 commits into from
Jul 10, 2024

Conversation

dfellis
Copy link
Member

@dfellis dfellis commented Jul 10, 2024

After thinking about it, there's no agreed upon set of operators for string manipulation like there is for arithmetic, and most languages are moving away from the few that gained some traction (eg +) and are moving towards string templating, instead.

So this removes almost all of them. I am still keeping # as a len operator for now since it applies to strings, buffers, arrays, and potentially other types, and I recall Perl having an operator like this. But it may also get dropped in the future.

@dfellis dfellis self-assigned this Jul 10, 2024
@dfellis dfellis merged commit 829c76a into main Jul 10, 2024
11 checks passed
@dfellis dfellis deleted the drop-most-string-operators branch July 10, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant