Programming Language for Games, part 3
Paolo Invernizzi via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 2 14:46:18 PST 2014
On Sunday, 2 November 2014 at 22:02:05 UTC, Andrei Alexandrescu
wrote:
> On 11/2/14 2:11 AM, Paolo Invernizzi wrote:
>> On Sunday, 2 November 2014 at 01:28:15 UTC, H. S. Teoh via
>> Digitalmars-d
>> wrote:
>>>
>>> 1) Compile-time verification of format arguments -- passing
>>> the wrong
>>> number of arguments or arguments of mismatching type will
>>> force
>>> compilation failure. Currently, it will compile successfully
>>> but fail at
>>> runtime.
>>
>> +1000! That would be awesome!
>>
>> It would be a _great_ boost in productivity during the
>> debugging phase,
>> or when we are under pressure and can't do a great job in code
>> coverage.
>
> Compile-time checking of format strings is nice to have, but I
> hardly see it as a major productivity boost. Maybe the better
> effect would be it serving as an example for other libraries to
> follow. -- Andrei
For sure it is a boost: the raising of such exception is not so
uncommon, and I assure that here at work is one of the top 5
cursed things when it happens.
Top of the pop, for cursing, when it happens in production.
---
Paolo
More information about the Digitalmars-d
mailing list