Just another example of missing string interpolation
max haughton
maxhaton at gmail.com
Fri Oct 20 21:19:32 UTC 2023
On Friday, 20 October 2023 at 19:58:44 UTC, Walter Bright wrote:
> On 10/20/2023 9:52 AM, Steven Schveighoffer wrote:
>> Just another whacked mole? What about the Exception problem?
>>
>> ```d
>> throw new Exception(i"Invalid integer value in $file: $val");
>> ```
>
> You'll get an exception message:
>
> Exception at FILE(LINE): Invalid integer value in %s: %s
>
> which is pretty much a nothingburger as a problem.
>
This feels like the kind of thing that "Make illegal states
unrepresentable" is supposed to be prevent, no?
More information about the Digitalmars-d
mailing list