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.
---
;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
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
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
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
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:
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
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
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]
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
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
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;
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;
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
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: &
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
16 matches
Mail list logo