
Sept. 24, 2023
1:42 p.m.
Dom Grigonis writes:
But it's far from concise What could be more concise?
A notation where you don't have to repeat a possibly long expression. For example, numerical positions like regular expressions. Consider this possible notation: f'There are {count} expression{pluralize(count)} denoted by {=0}.' Otherwise it isn't great, but it's definitely concise. In the simplest case you could omit the position: f'{=} is {count} at this point in the program.'
and violates DRY -- it doesn't solve the problem of the first draft typo.
And how is “postfix =“ different?
You *can't* use different identifiers for the name and value in "postfix =": the same text is used twice, once as a string and one as an identifier.