Perl 6: language has "local" variables (ie "dynamic" vars)?

D

David Combs

In a bookstore a few days ago, looked at 2nd edition
of Perl 6 (O'Reilly).

Saw dynamic vars in the interpreter-language, but
no mention in the perl-6 language.

Is it there? Better, does perl-6 have such a dcl?

For when it's needed, is very nice indeed;
saves having to write lots of exceptions-code.

Thanks,

David
 
M

Michele Dondi

Saw dynamic vars in the interpreter-language, but
no mention in the perl-6 language.

Is it there? Better, does perl-6 have such a dcl?

For when it's needed, is very nice indeed;
saves having to write lots of exceptions-code.

I'm not sure if I understand what you mean. AIUI Perl6 will finally
get rid of the two current mostly orthogonal sets of variables
(pacakge and lexical). What is now C<local> will be C<temp>. But then
since you talk about exceptions, you may also be interested in
hypotheticals, continuations and other marvels...


Michele
 
D

David Combs

I'm not sure if I understand what you mean. AIUI Perl6 will finally
get rid of the two current mostly orthogonal sets of variables
(pacakge and lexical). What is now C<local> will be C<temp>.

Great! So it'll now be called "temp".

(I would have preferred "dynamic", which is what common-lisp
calls it, the pre lexical-concept of variable binding used
in pre-common lisps, and still used in emacs-lisp.)

Thanks!

David
 
M

Michele Dondi

Great! So it'll now be called "temp".

(I would have preferred "dynamic", which is what common-lisp
calls it, the pre lexical-concept of variable binding used
in pre-common lisps, and still used in emacs-lisp.)

Don't forget Perl's intrinsic and typical
natural-languages-likeliness... IMHO "dynamic" wouldn't have been just
as intuitive, and by far!


PS: anser if you like, but then take into account that most probably I
won't be able to read news for one or two weeks or possibly even till
September!


Michele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top