On Thu, Aug 03, 2006 at 11:18:04AM -0700, Allison Randal wrote:
> Chip Salzenberg wrote:
> > (And of course I repeat a gentle reminder that the old find_global and
> > store_global opcodes will eventually [eventually!] go away, so convert
> > to the {get,make}*namespace and {get,set}*global opcodes instead.)
> 
> Which reminds me that we need to propagate the change to lexicals too:
> get_lexical and set_lexical, instead of find_lex and store_lex. We might
> as well make it one deprecation cycle for the whole set.

Matt suggests that the "get" meme is better for retrieving from a single
known location, while the "find" meme is better for looking in multiple
places until success.  If you agree, then "find_lex" can remain with its
current name.  As can, for similar reasons, "find_type".

OTOH, I'll grant that "store" isn't as good a cognate as "find", but I'm not
sure we have a good word for "look around until you find the thing I name,
and then set it to this value."

So if we can't find a really good pair of words to replace get/set in the
searching case like lexicals, then maybe we'll just have to use get/set and
let the "lex" be the clue.

PS: In some HLLs (e.g. Tcl (AFAIK))) there is no searching to speak of,
    so it's not a universally applicable concept.
-- 
Chip Salzenberg <[EMAIL PROTECTED]>

Reply via email to