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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Beta of DocBook 1.08, Norman Walsh | Thread | Re: Use of lambda, Daniel Speck |
Beta of DocBook 1.08, Norman Walsh | Date | Re: Pernicious Mixed Content [was R, Christian Leutloff |
Month |