I was just sitting here thinking over all these issues and making
various responses (as well as adjustments to my mental model for RFC
106 v2).

With the radical proposal of eliminating dynamic variables that RFC
106 includes (as an option! Don't get excited; read the RFC first!),
I've demonstrated to myself, at least, that Perl can be written
without dynamic variables at all (especially if you allow the ability
to use dynamic assignment (also known as the "local" operator, which
it doesn't)). I was pondering doing something formal like a
blood-oath or something to declare that I would never use a dynamic
variable again when it suddenly dawned on me that it would be Really
Cool if I could get perl to enforce this for me (I've never been very
good keeping oaths, or diets, or New Years' Resolutions, etc.; I guess
I'm just Lazy. :) And thus was born the idea for a new option for
the strict pragma:

use strict 'no-dynamic-vars';

Or whatever. Look for it in the upcoming RFC 106 v2. (Seems like any
idea that the RFC author called "optional" could be supported with a
pragma, come to think of it. :)

J. David

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-language-strict @
postedAug 17, '00 at 11:53p
activeAug 17, '00 at 11:53p

1 user in discussion

J. David Blackstone: 1 post



site design / logo © 2018 Grokbase