[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: Are STOP and INIT good names? (was Re: [PATCH pod/perlmod.pod 5.005_63] Special Blocks For Less Than Gurus)
Gurusamy Sarathy <gsar@ActiveState.com> writes:
||
|| On Tue, 25 Jan 2000 19:40:02 EST, John Macdonald wrote:
|| >Either of the last two seems reasonable, but the first does not make
|| >sense. It has a synonym for completion preceeding a synonym for
|| >preparation.
||
|| Only because you insist on looking at it as one big phase rather than
|| two different phases. :-)
I'm looking at it as a user who is trying to remember which
keyword is for which purpose and taking "obvious" clues from
the word used for the keyword.
|| > Only the internals steeped few who will understand.
||
|| I still fail to grok the worry here. Anybody who'll be using the
|| compiler in future had better understand that "compile time" and
|| "run time" are two different phases.
||
|| As Larry said, perhaps people who won't understand will never need
|| to know, because they won't ever use it.
||
|| >I like the {BEGIN,END}::{PARSE,RUN} idea; especially with Damian's
|| >backward compatibility addition that BEGIN is equivalent to
|| >BEGIN::PARSE, END is END::RUN, and INIT is BEGIN::RUN.
||
|| The only problem I have with this is that it creates more "magic"
|| namespaces like "CORE" and "SUPER", without a good reason for
|| doing so. IOW, BEGIN_PARSE, END_RUN would do equally well--there's
|| no real cause for making it look like it's in a namespace.
||
|| But then, putting underscores in there is also setting a precedent
|| that I'm not really sure about. I have always tacitly ass_u_med that
|| names with underscores weren't reserved for keywords.
How about just using END_PARSE and keeping START, INIT, and END
unchanged? Larry's point that it will (almost only) be code-writing
modules that will have any need to use it means that there isn't
a strong requirement for a short name.
--
John Macdonald jmm@jmm.pickering.elegant.com
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]