[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scanner: simplify use of gettext
From: |
Akim Demaille |
Subject: |
Re: scanner: simplify use of gettext |
Date: |
Sun, 11 Nov 2018 08:20:37 +0100 |
Hi!
> Le 10 nov. 2018 à 18:23, Paul Eggert <address@hidden> a écrit :
>
> Akim Demaille wrote:
>> I don’t see what it buys to have two instead of one call only, have I missed
>> something?
>
> If every call to the function f will be of the form f(A, g(B), C) where A, B,
> and C are expressions, it’s generally cleaner to push the g call into f's
> body, and change f's API so that calls to it look like f(A, B, C) instead.
Agreed.
> That's all I was doing there. It was more of a clarity than an efficiency
> thing (the form I used is more efficient than what you’re proposing, but
> efficiency doesn't really matter here).
In this precise case, given that pushing g() downwards costs (to the human
reader) a N_, I prefer the simpler approach. Thanks!