Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Mar 2009 14:45:02 +0100 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n2CDj2WN002114 for ; Thu, 12 Mar 2009 14:45:02 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n2CDcjFT015709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Mar 2009 14:38:45 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n2C9NsHg010714; Thu, 12 Mar 2009 14:38:44 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 199767 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 12 Mar 2009 14:38:44 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n2CDciwd023696 for ; Thu, 12 Mar 2009 14:38:44 +0100 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n2CDcf6a032636 for ; Thu, 12 Mar 2009 14:38:44 +0100 Received: by wf-out-1314.google.com with SMTP id 23so598842wfg.25 for ; Thu, 12 Mar 2009 06:38:38 -0700 (PDT) Received: by 10.142.50.6 with SMTP id x6mr4302162wfx.218.1236865118706; Thu, 12 Mar 2009 06:38:38 -0700 (PDT) Received: from ?10.0.1.104? (219-90-183-123.ip.adam.com.au [219.90.183.123]) by mx.google.com with ESMTPS id n30sm567417wag.56.2009.03.12.06.38.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Mar 2009 06:38:37 -0700 (PDT) Content-Type: multipart/signed; boundary=Apple-Mail-3-859873865; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v930.3) References: <49B90B59.9060706@morningstar2.co.uk> X-Mailer: Apple Mail (2.930.3) X-Spam-Whitelist: Message-ID: Date: Fri, 13 Mar 2009 00:08:31 +1030 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: Functions with no arguments To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <49B90B59.9060706@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -4 () RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 12 Mar 2009 13:45:02.0721 (UTC) FILETIME=[BE7D8710:01C9A318] Status: R X-Status: X-Keywords: X-UID: 5708 --Apple-Mail-3-859873865 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 12/03/2009, at 11:47 PM, Joseph Wright wrote: > A "philosophical" question. To make various bits of code clearer, I'm > in the habit of splitting self-contained parts off. Sometimes, this > results in functions which take no arguments. Under the LaTeX3 > scheme, > is it "acceptable" to have functions of no arguments rather than tlps > containing the data? To be hasty (and not particularly experienced :) ) I would say yes, this is a more than acceptable idea. I see no problem (quite the contrary) with functions that say "initialise the local variables we're going to use" or "detect the mode that we're currently in", which do not require any information (besides the current state of things) passed to them. I think of tlp's more as data containers, which could even contain functions to call in certain circumstances, but which wouldn't be used in general to store entire "subroutines" for repeated execution. Cheers, Will --Apple-Mail-3-859873865 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoII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