Harry, your posting appeared three times in comp.lang.ruby. If
possible, please try to avoid that. If the cause is not on your side we
should probably find out what went wrong (gateway?).
On 19.09.2009 17:35, Fabian Streitel wrote:
> An appeal to Ruby Development Team: If Perl has no patent over its
>> regexp spec (I believe Perl is completely free), then the Ruby
>> Development Team should simply lift wholesale the whole blessed regexp
>> spec out of Perl (including the code) and support it in Ruby. I'm sure
>> Rubyists in general would welcome this. Basically: If you don't need
>> something, just don't use it; however, it's available for the rest.
>>
> Hm, IMHO that's not necessary. Except for lookaround, I had no need
> for any more advanced regexp features in Ruby 1.8.7 and with Oniguruma
> that one need will be satisfied in 1.9, so I don't see why that should be
> necessary.
I agree 100%: lookaround was _the_ feature I missed in 1.8 land - and
since it's there in 1.9 (among other nice improvements, most notably
execution speed) I am quite happy with the state of affairs.
> Oniguruma is a great regexp implementation, and if you really need those
> 2 or 3 features that aren't in there -- then you should probably do that one
> script in perl...
.... or find a different way to implement it in Ruby - and be surprised
how easy and concise that solution is.
> After all, it is still a nice language that lets you do some stuff
> wonderfully
> hackishly, so IMHO it has it's place (I for myself love to do hackish stuff
> from time to time -- keeps me from doing that in Ruby, where I don't want
> that)
"hackish" does not qualify a language for me. The most compelling
reason for me to use Perl would be the presence of a library in CPAN
that I otherwise had to painfully recode in Ruby. OTOH, it may actually
happen that I find the recode fun and turn it into a Gem for wider
use...
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/