Adoption of perl/javascript-style regexp syntax

mats cronqvist <>
Wed Jun 3 08:59:24 CEST 2009


"Richard O'Keefe" <> writes:

>
> The ultimate point though is that hacking on the language to
> make it easier for people to do the WRONG thing does not strike
> me as a good use of anyone's time.

  A truism. But I don't think the correct definition of "WRONG" is
  "whatever Richard O'Keefe dislikes."

> That pain level is there for a good reason: if the Erlang string
> syntax is giving you that much of a headache, it's because STRINGS ARE
> WRONG and you should almost certainly be using trees instead.

  Alas, re wants strings, and there's not much I can do about that.

> I really shouldn't have mentioned the .{{ ... .}} hack, because
> the real point there was DON'T CHANGE THE LANGUAGE because in
> this case it's not the language that's wrong.

  I disagree. 

  mats


More information about the erlang-questions mailing list