Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by h2774747.stratoserver.net (8.15.2/8.15.2/Debian-3) with ESMTP id w93GcAR6016264 for ; Wed, 3 Oct 2018 18:38:11 +0200 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx117 [212.227.17.5]) with ESMTPS (Nemesis) id 1MhmXI-1fTzZ70Qbo-00dbOi for ; Wed, 03 Oct 2018 18:38:05 +0200 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx117 [212.227.17.5]) with ESMTPS (Nemesis) id 1MhmXI-1fTzZ70Qbo-00dbOi for ; Wed, 03 Oct 2018 18:38:05 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id w93Gc4K0007732; Wed, 3 Oct 2018 18:38:04 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 64F7C125B68; Wed, 3 Oct 2018 18:37:56 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 29991488 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 3 Oct 2018 18:37:56 +0200 Delivered-To: LATEX-L@listserv.uni-heidelberg.de Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 5241C125B58 for ; Wed, 3 Oct 2018 18:37:56 +0200 (CEST) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id w93GboGx007639 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 3 Oct 2018 18:37:53 +0200 Received: by mail-ed1-f48.google.com with SMTP id z21-v6so1524785edb.11 for ; Wed, 03 Oct 2018 09:37:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=YviJ/fjk2BhYNN1/b8vXwncFlvfnatNyPmzKc6EDQio=; b=CD3pvWAXAjl+jcHcIxDL1QpyNQ8BgWBosRSMSjJpR5WutEzQDIcknef/EPp6A7c5v+ t3WlBrdLQeL04855jdS2SAxKppCNuvI7h+aAbt4zFz2bnox8bVofGWArVsP42xQMwe0f VqC8DywU6Oet97faUsdszDvAcr+FPWAe4LyxM60c7lJFc2NaXcDkhJjCyKZAOSdfElcN rLHVrFdtsWVeF8aEDXOz7Q/l8LUghTPPUK6OFyecm9AByUJ38oVCCrMBeDnUONeiJ2mO mJ00qligOXEOdHjm/7lfzO1dBhK/Br/QneruFdK+yomaONc6KkeU014sX1+1vnDS4wUO s4kA== X-Gm-Message-State: ABuFfohvibEm9eFafzQ2t/gqvwKuWBq2xPz7ZzqFb8wwIhHW4kbecby6 XEYbVpEjfP82h2uR5hZNEwxKjahUwew= X-Google-Smtp-Source: ACcGV61uICwv0aLuRCxw7Br8ttbYAJkR8ByRaZofFd0sUH4H3znALhgAbaz6+pU6tFzY/b1/FeHTvw== X-Received: by 2002:a50:be8d:: with SMTP id b13-v6mr3427114edk.157.1538584670102; Wed, 03 Oct 2018 09:37:50 -0700 (PDT) Received: from ?IPv6:2a05:1141:1f6:5b00:2908:770f:846:7c3b? ([2a05:1141:1f6:5b00:2908:770f:846:7c3b]) by smtp.gmail.com with ESMTPSA id m11sm653699edv.90.2018.10.03.09.37.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 09:37:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) References: X-Mailer: Apple Mail (2.3445.100.39) Message-ID: <189D41EC-96F9-4F35-8248-81A18641C97C@gmail.com> Date: Wed, 3 Oct 2018 18:37:48 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Johannes Burtscher Subject: Re: Function arguments vs "global" variables To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-UI-Filterresults: notjunk:1;V01:K0:P293l7iPbzE=:lAMgRHBr+twuWaLcKiykNlXUfV 4cr8/fZVsVO10Ni/Df2VTKuUpJBl/Bv/khnz/ko+6H+oNBYVDR9/C8ixBTCf0fgQcXDf72m8v A/Xl0Pvrud26UfWkoPcBP/wbwYlrcvXrHUzUez5DeN04Wy3KafdRwqqlBwAdszFD7/91vlVsS AhzKC/MSzZ4NX4Ljb5OW1GBiiYDbQ1gnNjr4RyJhNmQRYZjrLaTd9gKrhF96GuGaJPrjr+4x9 vmWMP/s6qtzbTk0tB/Np44FFeOYor5Q8XTarVWS7LObJVROQiEaomiqnplrtnmJLIcEr9N8he KV11zaTzojjjnwfA941lUrKVgeiDtdYAxqFlvN+ej0l7RtFT0hoY8Wu0KWQKg+aKTJiCFa/2Q +nFsPLE92c0USipocrik4+EeB0v2f4ieYuIBvmBcjA41X+BA99DUq3YTA+zEmbxJyEGHAraDk FG47TGkuXKSLRmNZRn5LLsPZ/q3zEChFkiLjJtXsYCsI+fs2rmUbJWGm9sGDoY3MvEaMTwWI+ gH/qFZQII7gZtmc5GG0my/kjx+eedbYdH/FQcHG0mOjRa7R+iONG3PR79fyqvoYsTOLBtJB1z CFoeliFMRr90RJpaSaJnPHPI6Ij+VJJnTymyeUs4kuGqqSUfvIzkCEUBGxr8wutIzZo1SX4GS B78KoGhhtAuv+bF3bFY9NKTVGHTqV6Moa2y0JkjDeK1TMGBYtTFteRyLDN2vsWM/QNdIiibDB N5mEVPBLSOcFFHHBT5kkp26AEsgc0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LtvhbW UikuK5ENhgOIN4vIS0wBsWaLhH9hy+OldjbmVM8do8OpBLeXGHTBRyc1plNGB9E1cBNFWCllK c18tUXMp2xR7LNhTrWehkp91ube/1eNL96+wdjZ4dhkmenWo0DQWLIL90x3t0HiW7zVMfH+qH dh5ZhT0z7k5a/W7Xih8WUb3WVzt4pWlp0lbJk1IwX4eaxn097uw4ID5HPw9ryVo5qdyGeHNSu LqjJNLEaaDJnokloQANC0= X-UI-Loop:V01:vdL8K+N6SNo=:qmOfD2lB2DvPHG53pJyzNEs8G4Sl4bx6EuypKA1HWTU= X-UI-Out-Filterresults: notjunk:1;V01:K0:iBji4QPcKx4=:R6+qJDaHL8nKSMoWGEDYYQ s1IhVFZ1a4uMGVtNpWwy1PAhEf/4sxP3n7cLVo9WN4CkkYOFj06F5uBN95KeYpbT1w1M4Dk4/ Gl/MvZdZGqVkCjAcwZDLPlg7AXuM3kWHWnfkhXx/3mXbV9qAX1rpViNeiYhIkjOeyRvtWYjLI XnfLf4+LReXeCldzX7vVeo62KJSAtzFDSh6lUUlEfc1YA8mS9XD7uM1IGFeZrsrU1CPG9Oa3p V9BvZ6GnoYhDX/dePfblAqLnc/Y5Qw9NyM0ZQLm9wx++8yWGfq7+fGe5VVTQxzx1MXZXCOq/z K1aK2ryClZhY2/bMlOsDIZEAzG/eT5TQOqKWII1W/rWUkCCGbgo0yywW7arCOmZuyQjMX+tl8 TmIsGVWsH+xUveCK/rEiKXFj3rytyhYbYkmhwbHaPewA4MAqRcKplETvgpt2fijPsRXmhAg9S 8Jqpza3NmKp5NR7fllxV+y2wdXOWrRE= X-Scanned-By: MIMEDefang 2.78 on 81.169.212.23 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by h2774747.stratoserver.net id w93GcAR6016264 Status: R X-Status: X-Keywords: X-UID: 8089 Hi Will, > In my own code I think it comes down to scope. If you’re operating on variables that are broader in scope than the auxiliary functions you’re using to process them, I wouldn’t use arguments. That’s pretty interesting - I’ve only been toying around with single code snippets and never thought about it in this way. I think I’ll give that (along with “showing intent”) simply a try and already look forward to the first round of refactoring… :) Thanks Johannes