[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 writes:
: 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.
I agree.
: 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.
I agree with that too.
I still like CHECK or CHECKPOINT the best, since it implies that it's a
hook for either linting or checkpointing what you have so far, and in
the latter case, that you intend to restart from from the checkpoint.
The other names are still perfectly servicable, as far as I'm concerned.
Though, of course, if you do call it CHECKPOINT, there will be calls
for INIT to be named RESTART instead.
Larry
- References to:
-
Gurusamy Sarathy <gsar@ActiveState.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]