Use of lambda

Subject: Use of lambda
From: Chris Maden <crism@xxxxxxx>
Date: Thu, 26 Feb 1998 11:56:11 -0500
I'm cleaning up my SGML->MIF stylesheets; hopefully they'll be in a
state where I won't be embarrassed to share them soon.

For a few parameters, I had needed functions to dynamically build a
string.  Rather than having some variables and some procedures
arbitrarily, I've made them all variables, but defined some with
lambda.

For instance:

(define pages
  (lambda ()
    (string-append "...")))

When I call this in the stylesheet:

(string-append "..."
	       pages
	       "...")

the function is processed.  Is it kosher to call a no-argument
function without any parentheses, or is Jade being forgiving?  Should
I go the other way and make everything a procedure instead of a
variable, and just define some of those procedures as always giving
the same results?

Thanks in advance,
Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Use of lambda
    • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA28437Thu, 26 Feb 1998 11:52:50 -0500 (EST) <=
      • Daniel Speck - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA00390Thu, 26 Feb 1998 13:13:50 -0500 (EST)
        • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA01627Thu, 26 Feb 1998 14:05:15 -0500 (EST)
      • Dave Love - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA01122Thu, 26 Feb 1998 13:51:12 -0500 (EST)