[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)




Sarathy wrote:

   > I'd agree that STOP is not exactly as enlightening as
   > RUN_WHEN_COMPILATION_STOPS().  If you get any better ideas, let me know.

I think:

	BEGIN	# Begin processing
	READY	# Ready to run (must have finished processing to be ready)
	INIT	# Initializing (must be running to initialize)
	END	# End of execution (and complements BEGIN)

is the best set yet proposed.

Unlike other suggestions, it has a sequence whose logic is explicable to
non-gurus (therefore more likely to be correctly remembered by them).
How one would remember that STOP (or DOZE) comes between BEGIN and INIT is
beyond me.

Damian


Follow-Ups from:
Larry Wall <larry@wall.org>
Nick Ing-Simmons <nick@ing-simmons.net>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]