alantech / alan

Autoscalable Programming Language
https://alan-lang.org
MIT License
306 stars 10 forks source link

Drop most string operators #801

Closed dfellis closed 3 months ago

dfellis commented 3 months ago

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.