Closed flash-gordon closed 7 years ago
I find this very confusing, as you pointed out this feels too generic. ie when I see match?
I think about regex, in fact I had no idea there's Regex#===
that can be used against a string.
I wonder if it'd be clearer if we called it #case?
Yeah, I like this idea Tim. This does require you to understand how case
statements work, but that's OK.
OK, I like the idea, I updated the name. Range
also has #===
btw :)
@solnic I did this, but I'm very unsure now, this looks like too generic. Anyway, my class has a custom
===
method and I want to match values with that, soooo, can we have it? If not, just close :)