Date: Mon, 08 Jul 2019 14:27:09 -0300
On Saturday, 6 July 2019 10:13:17 -03 Jonny Grant via Std-Proposals wrote:
> Don't you just hate it when you're reading code that looks like this and
> no idea what those parameters are ?
>
> func(true, false);
Yes. That's the result of badly designed APIs. You can fix the problem by
designing good APIs. The language cannot cope with people shooting themselves
in the foot and should not be held to blame when people do.
See https://doc.qt.io/archives/qq/qq13-apis.html, published around 15 years
ago.
> Don't you just hate it when you're reading code that looks like this and
> no idea what those parameters are ?
>
> func(true, false);
Yes. That's the result of badly designed APIs. You can fix the problem by
designing good APIs. The language cannot cope with people shooting themselves
in the foot and should not be held to blame when people do.
See https://doc.qt.io/archives/qq/qq13-apis.html, published around 15 years
ago.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel System Software Products
Received on 2019-07-08 12:29:06