From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: dynamic and lexical scope, attempted summary with example Date: Mon, 21 Jul 2014 19:07:15 +0200 Message-ID: <87zjg2od30.fsf@zigzag.favinet> References: <878unputvv.fsf@debian.uxu> <87bnsjsorp.fsf_-_@debian.uxu> <87r41eesv9.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1405962267 26828 80.91.229.3 (21 Jul 2014 17:04:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 17:04:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 19:04:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X9H0c-0007Qi-Nf for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 19:04:18 +0200 Original-Received: from localhost ([::1]:35384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9H0c-0005CB-6l for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 13:04:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9H0N-0005C5-0h for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 13:04:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9H0H-0000v4-RW for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 13:04:02 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:40807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9H0H-0000uv-Co for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 13:03:57 -0400 Original-Received: from zigzag.favinet (79.51.73.13) by smtp207.alice.it (8.6.060.28) id 525156853637BEAA for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 19:03:55 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1X9H3e-0002Oz-Kb for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 19:07:26 +0200 In-Reply-To: <87r41eesv9.fsf@debian.uxu> (Emanuel Berg's message of "Mon, 21 Jul 2014 15:36:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98869 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Emanuel Berg () Mon, 21 Jul 2014 15:36:26 +0200 Thien-Thi Nguyen writes: > I find =E2=80=98(format "%s%s" A B)=E2=80=99 unbeautiful, personally. OK, how would you do it? I would make sure A and B are always strings and use =E2=80=98concat=E2=80= =99. For filenames, i would use =E2=80=98(expand-file-name B A)=E2=80=99. > I think using terms "insert" and "hard-coded" is > confusing in this context. Also, "eliminated" is > imprecise and thus misleading. To bake a cake, do > you eliminate the flour? But you understand it, right? I mean, what I mean? If i answer "no", then both of us may be fooling ourselves, but in a safe way. If i answer "yes", then there is only one fool (me), but the foolishness i am capable of is huge. The result of the _insertion_ of literal values at the places of the parameters, will result in a function that don't use variables (dynamic or lexical) but _hard-coded_ values - that issue is _eliminated_. Do you think it is correct in terms of technology? Mu! (See above.) Actually, i'd add "places" and "will result" to my list of confusions. =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlPNSMcACgkQZwMiJEyAdQJN8ACfTMVftnhiMZ5lXEgpF44xGfze B50Anjwy6lISWMaLAHQVfzlH/1rTBDRu =AFFM -----END PGP SIGNATURE----- --=-=-=--