[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dynamic and lexical scope, attempted summary with example
From: |
Thien-Thi Nguyen |
Subject: |
Re: dynamic and lexical scope, attempted summary with example |
Date: |
Mon, 21 Jul 2014 19:07:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
() Emanuel Berg <embe8573@student.uu.se>
() Mon, 21 Jul 2014 15:36:26 +0200
Thien-Thi Nguyen <ttn@gnu.org> writes:
> I find ‘(format "%s%s" A B)’ unbeautiful, personally.
OK, how would you do it?
I would make sure A and B are always strings and use ‘concat’.
For filenames, i would use ‘(expand-file-name B A)’.
> 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.
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
signature.asc
Description: PGP signature
- Re: run-with-timer does not display message, (continued)
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/20
- RE: run-with-timer does not display message, Drew Adams, 2014/07/20
- Message not available
- dynamic and lexical scope, attempted summary with example (was: Re: run-with-timer does not display message), Emanuel Berg, 2014/07/20
- Re: dynamic and lexical scope, attempted summary with example, Thien-Thi Nguyen, 2014/07/21
- Re: dynamic and lexical scope, attempted summary with example, Thorsten Jolitz, 2014/07/21
- Message not available
- Re: dynamic and lexical scope, attempted summary with example, Emanuel Berg, 2014/07/21
- Re: dynamic and lexical scope, attempted summary with example, Michael Heerdegen, 2014/07/21
- Message not available
- Re: dynamic and lexical scope, attempted summary with example, Emanuel Berg, 2014/07/21
- Re: dynamic and lexical scope, attempted summary with example,
Thien-Thi Nguyen <=
- Message not available
- Re: dynamic and lexical scope, attempted summary with example, Emanuel Berg, 2014/07/21
- Message not available
- Re: dynamic and lexical scope, attempted summary with example, Emanuel Berg, 2014/07/21
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/19
Message not available
Re: run-with-timer does not display message, Joost Kremers, 2014/07/15