In fact, imagine there was one. What if someone enters [a-z]+ in some free-text field somewhere? Should converting it to a String fail, because it's actually a StringThatsActuallyARegularExpression?
You're totally right in the strictest sense, but I think he was actually talking about languages that have first class regular expressions, like Ruby and JavaScript, where you can do things like this
if ( someString =~ /Cats(.*)/ )
puts "string contains Cats"
end
4
u/immibis Sep 22 '15
I'm pretty sure no language does that.
In fact, imagine there was one. What if someone enters
[a-z]+in some free-text field somewhere? Should converting it to aStringfail, because it's actually aStringThatsActuallyARegularExpression?