[prev] [thread] [next] [lurker] [Date index for 2006/12/17]
On 12/17/06, Peter da Silva <peter@xxxxxxx.xxx> wrote: > On Dec 16, 2006, at 7:44 PM, A. Pagaltzis wrote: > >> I could go on, getting in to the sorts of hate that Perl > >> enables - s;foo;bar; anyone? > > > That's annoying, but do you find the following pretty? > > > s/^file:\/\/\/?// > > Neither is acceptable. > > It should be something like > > string.replace("^file:///?",""); No. It. Shouldnt. HATE. I've written just enough pattern matching code in languages requiring such a stinky syntax to know that it SUCKS THE WANG REALLY FUCKING BIG TIME. Not every language needs to look like that. And if you REALLY want it to then perl lets you. Theres already OO style pattern matching interfaces available on CPAN for instance. I hate this whiny "perl doesnt work the way my favourite language works" shit especially when perl lets you define interfaces so it works just like your favorite language. But of course "favourite language" doesnt allow you to define interfaces that work like perls do. -- perl -Mre=debug -e "/just|another|perl|hacker/"There's stuff above here
Generated at 22:02 on 27 Dec 2006 by mariachi 0.52