Re: [q-lang-users] New 'where' syntax
Brought to you by:
agraef
From: Keith T. <kaz...@ea...> - 2007-05-25 09:42:49
|
Hello Albert -- --- Albert Graef <Dr....@t-...> writes: - In Q this definition can now be written as follows: - clunky ENV VAR1 VAR1 - where just VAL1 = lookup ENV VAR1, - just VAL2 = lookup ENV VAR2: <<<<< Is that colon ':' following 'VAR2' correct? It doesn't look right, but I know that I have probably missed something along the way... (so I'm asking you nicely for clarification =). --- Albert Graef <Dr....@t-...> writes: - Another side note, and request for comments about "qualifier" vs. "guard" [snip!] Wrt. "simple" labels, e.g., "qualifier" and "guard", if "guard" is already established, then why not go with it? Unless, of course, Q has a special use for "guard"; but it means the same, right? Similarly, wrt. "guarded equations" and "conditional equations", the former expression is better for folks coming to Q from Haskell (over on perl6lang, they claim that before Pugs*, that there were only *two* people programming in Haskell... ;-). OTOH, I think that introducing the concept of "conditional equations" is also appropriate, if we first note that this is how term rewriting refers to "guarded equations". Travel and an expanded vocabulary both serve to broaden the mind! Just my two cents! =) Cheers, Keith *Pugs = Perl Users Gofer System (or so I think...) |