|
From: | Omid Mo'menzadeh |
Subject: | Re: How to get warnings for unused parts of a file? |
Date: | Sat, 2 Oct 2021 18:54:35 +0330 |
"Omid Mo'menzadeh" <omid.mnzadeh@gmail.com> writes:
> I'm just re-stating this to make sure I'm getting it right: Definitions are
> lazy, and the _expression_ in front of # is lazy too, so it gets a chance to
> see the definition once it's done? Am I right?
It's not a definition but an assignment, and the assignment is not
"lazy" but executed as soon as it is complete. Recognizing its
completeness may require examining the type of the next token, and the
type of $ depends on its value (which consequently needs to be evaluated
to figure out its type) while the type of # doesn't.
--
David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |