Aristotle Pagaltzis wrote:
Actually that makes me wonder now whether it’s actually a good
idea at all to make the function parametrisable at all. Even
`.ltrim.rtrim` is shorter and easier than `.trim(:start,:end)`!

How about .trim(:l, :r) with both as the default? And if the rtl crowd makes a furor, we can add :a/:o or :ת/:א or something.

So I question the usefulness of parametrisation here.

Useful for doing infrequent things. IMO, left and right trimming are infrequent compared to the frequency of basic input editing.

=Austin

Reply via email to