[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Regexp quoting (again)

From: Dave Thomas <dave@...>
Date: 2003-04-17 13:12:59 UTC
List: ruby-core #971
Folks:

I know this has been discussed at length, but could I put in a vote not 
to warn on  /]/. I now have a lot of legacy code that generates 
warnings, and for the life of me I can't see a good reason for it. It's 
a bit like generating warnings for characters inside strings:

    "1) Break 3 eggs in a bowl"

    recipe:1 warning - unmatched closing parenthesis in string

The ']' in a regexp is a terminator, and is not otherwise special. Why 
should it need to be escaped?

Cheers


Dave


In This Thread

Prev Next