Re: more lobbying
- Posted by Tom Eklöf <darkspace at SUNPOINT.NET> Sep 04, 2000
- 449 views
> [snip] > sequence s1,s2 > s1 =3D s2 =3D {"Plea",se.."} > [snip] Your last example leaves me completely puzzled. Even though it's fairly o= bvious that you just forgot a quote from the second element, I don't unde= rstand what you're trying to do there. Are you going for an approach of something like this pseudoEu: {s1, s2} =3D {"plea","se"} which would set s1 to "plea" and s2 to "se." Or are you working on the perlish assumption that the assignment op alway= s returns its own left-value? Or am I just not playing with a full deck here? ;) And now that I'm at it, I might as well throw in my $.02: --Regular expressions. I'm still an advocate for this. Just rip the bugger out of the perl packa= ge if you have to ;) Seriously speaking, regexp would be a great functionality for Euphoria. L= et's take over some territory from Perl! mean, think about it, with a powerful regexp system and simple UN-QUIRKY= grammar, Euphoria would beat the crap out of Perl any time of day. No more having to produce (or read) code like: defined($params[1]) && do{$params[1] =3D~ /^PARAM=3D.*/i ? do{(@subparams= [1] =3D (&split_params($params[1], '\=3D'))[1])}:do{print "ERROR: PARAM E= RROR $params[1]\n";goto FROB;};}; And other such drivel, which I and many others regularly produce just to = keep our jobs ;) --Function subscription and slicing. This has been talked about before, I know. I just fail to understand the difference between writing temp =3D returns_a_two_element_sequence(zok) puts(1,temp[1]) instead of just going puts(1, returns_a_two_element_sequence(zok)[1]) The other value is going to get thrown away anyhow, so why not allow us t= o do it quicker? --Goto (Don't snicker, I'm dead serious ;) Really, it IS useful in certain situations. Sure, they _can_ be handled i= n more "elegant" ways, but it gets complicated. A LOT. Allright, now I'll just lie right here and wait for the flames to rise. --Tom "Mr. Wizard" Ekl=F6f Tiesitk=F6, ett=E4 Sunpoint.netin k=E4ytt=E4j=E4t voivat lukea s=E4hk=F6p= ostinsa my=F6s WAP-puhelimella. http://www.sunpoint.net/SunAds/click.htm?mode=3Dfooter&id=3D&jump=3Dhtt= p%3A%2F%2Fwww.sunpoint.net%2Fwap%2F