poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] More powerful string literals, instead of new format function


From: Jose E. Marchesi
Subject: Re: [RFC] More powerful string literals, instead of new format function
Date: Mon, 15 Mar 2021 00:01:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> On Fri, Mar 12, 2021 at 11:46:23PM +0100, Jose E. Marchesi wrote:
>> 
>> > I propose a Python-like string literal: f-strings.
>> 
>> I am not convinced at all about this.
>> 
>
> Thank you for your comprehensive review.
>
> I realized that I missed two major points in my proposal:
>
>   - Nested style-classes
>   - Future of `printf`
>
> The first one is not simple to achieve using f-strings.
>
> Regarding `printf`, yes, we cannot just remove it from the language.
> And having two syntax for doing exactly the same thing (but differently)
> is a very bad idea (one using `printf` and the other using f-strings).
>
> So, `format` is the right solution for the Poke.
> And the parser would replace a `printf (...)` with `print (format (...))`.

Well thank you for the proposal anyway.
I really appreciate your interest and your super valuable contributions.
For real :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]