Re: Should loops return a value?

2003-10-05 Thread Ville Jungman
ttachment - so it's easily possible that You have more practical experience than i. I'll also test it more and look what Your ideas feels when i get more experience with this. It'll also be easier to install and test if this was a CPAN-module so i try to get so far someday. ---

RE: Should loops return a value?

2003-10-01 Thread Ville Jungman
;d be glad if You told feelings and thoughts about this technique after trying it - but, please, experiment a little bit before hauling it over the doalms (then You're free to do so :) ). And the point is in return values - not how the script is written. --- ville jungman, 2 laureston cresce

Re: Should loops return a value?

2003-09-30 Thread Ville Jungman
was perfect with this, she just adds her '@variables=' before a construct and no additional alterations must be made to code. Like i wrote in another mail, the 'do' made exactly what i'm searching for - if the 'do' could be omitted (and sadly only with if-com

Re: Should loops return a value?

2003-09-30 Thread Ville Jungman
hy can you use retlast() in places where neither return() or last() make any sense? I agree, retlast is extremely stupid with this example. Thanks for the constructive comments, ville jungman, 2 laureston crescent, tower, blarney, cork, ireland tel. + 353 - 21 - 451 6847, http://www.kolumbus.fi/v

RE: Should loops return a value?

2003-09-29 Thread Ville Jungman
dat{y}) name. I understood that by IO-system, it would be possible to use caller's values or the caller itself (maybe in same style like it was an object) inside the 'if' with just having a reference or something to it - and have even more common code in several cases? ville ju

Re: Should loops return a value?

2003-09-27 Thread Ville Jungman
as i think now when i have used it a while :) ville jungman, 2 laureston crescent, tower, blarney, cork, ireland tel. + 353 - 21 - 451 6847, http://www.kolumbus.fi/vilmak usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31) From: "R. Joseph Newton" <[EMAIL PROTECTED]> To:

Re: Should loops return a value?

2003-09-27 Thread Ville Jungman
after using them a while i think that they will be easier an more natural way to do things than it's now. I have no proof that it'll be like this - that's only what i suppose. You might not agree but then we just think differently. That's natural, too. (I'm sorry abo

RE: Should loops return a value?

2003-09-26 Thread Ville Jungman
It is possible that your concept -- returning values for all language constructs could be revolutionary. BUT, at the same time there are a number of languages which have tried to be innovative and have never been heard from again. I'm not creating a new language - this wouldn't remove anything f

Re: Should loops return a value?

2003-09-26 Thread Ville Jungman
t fully understand how it exactly would be done? --- Ville Jungman _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Should loops return a value?

2003-09-26 Thread Ville Jungman
ou heard about objects, perl or something else, what __? At first glance they might not feel very temptating but feelings might change after using them? --- ville jungman, 2 laureston crescent, tower, blarney, cork, ireland tel. + 353 - 21 - 451 6847, http://www.kolumbus.fi/vilmak usko

Re: Should loops return a value?

2003-09-26 Thread Ville Jungman
Not crap, just unnecessary. If the loop should arrive at a value to be returned, it should probably be enclosed in a function, which was designed for returning values. Everything is unnessessary because always code could be made with machine language or assember - latter of course is unnessessar

RE: Should loops return a value?

2003-09-25 Thread Ville Jungman
d to debug or read particularly when programs grow. Yours, --- Ville Jungman How is this? The only difference is that you need to put the array to loop over after the code. it's close though. sub loop (&@); my @x = (1,3,5,7); my @y = loop { return $_[0]."a" if $_[0] > 4; } @x;

Re: Should loops return a value?

2003-09-25 Thread Ville Jungman
Ville Jungman wrote: Shortly, I think it might be good if loops (etc.) could return values. Yes, You're right John! A very good example! Which one would be more readable? This: @bigger_than_4= foreach $value(@values) { retnext $value."a" if $value > 4;

RE: Should loops return a value?

2003-09-25 Thread Ville Jungman
Thanks, sounds much more exciting now. Perhaps I should read what they mean for those constructs but sounds very promising. ville jungman, 2 laureston crescent, tower, blarney, cork, ireland tel. + 353 - 21 - 451 6847, http://www.kolumbus.fi/vilmak usko Herraan Jeesukseen, niin sinä pelastut

RE: Should loops return a value?

2003-09-25 Thread Ville Jungman
or to some other language), it wouldn't even affect to performance (ok, maybe little bit). But it'd bring much power because You could have more control, readibility and straightforwardity in Your code - and maybe more speed in some circumstances, too. Kindly, Ville Jungman From: &

Should loops return a value?

2003-09-25 Thread Ville Jungman
not very conserverite but think what all you could do with this. And please, let me know what you think about this. Crap? --- ville jungman, 2 laureston crescent, tower, blarney, cork, ireland tel. + 353 - 21 - 451 6847, http://www.kolumbus.fi/vilm