private(this) vs LINT
Daniel N
no at public.email
Tue Jun 28 16:06:54 UTC 2022
On Tuesday, 28 June 2022 at 14:48:36 UTC, zjh wrote:
> On Tuesday, 28 June 2022 at 13:49:16 UTC, Daniel N wrote:
>> On Tuesday, 28 June 2022 at 00:18:17 UTC, zjh wrote:
>
>> you still can use dub "out of the box", all you have to do is
>> to include the official linter with the standard installation
>> of dmd.
>
> If you need `'linter'`, why not `'integrate'` to `'DMD'`, just
> like `'unittest'`.
> I haven't used 'linter'. As a `'professional'` compiler,If dmd
> has `builtin` linter and added a switch. Wouldn't it be better?
Yes, but I know Walter, he mentioned many times his dislike for
compiler switches and warnings and he raised some very good
points, which I partially agree with, but his dislike of switches
is even stronger than mine.
Imagine four innocent small switches -A -B -C -D, if you can
toggle all of these the result is a combinatorial explosion,
because some bugs might only manifest in certain combinations and
thus the required testing time increases greatly.
If "we" make our own tools with stricter warnings that can be
tuned to everyones individual preference, there is 0 risk of
compiler regressions.
More information about the Digitalmars-d
mailing list