alternative linters
Basile B.
b2.temp at gmx.com
Tue Dec 16 15:41:35 UTC 2025
On Tuesday, 16 December 2025 at 15:33:33 UTC, Serg Gini wrote:
> On Tuesday, 16 December 2025 at 15:05:54 UTC, Basile B. wrote:
>> I think D should do what I'made for STYX, [a
>> linting-pass](https://gitlab.com/styx-lang/styx/-/blob/master/src/styx/lint.sx?ref_type=heads) directly in the compiler and that can be **optionally** run after sema.
>
> I think this is the joy of "developing new language" - when you
> can implement these things into compiler from the beginning.
>
> For languages which were not initially designed for this
> feature - it is quite hard to incorporate it afterwards
This is partially right (let's stay positive ;) ). The thruth is
that Styx followed the D philosophy about warnings, i.e "that's
either good or an error". What happened then, way much later than
the first self-hosting, is what I've described before. Linting
can be a leaf feature. You can do the same in the D front-end.
I'm really serious. One or two weeks a pull request with 2 or 3
modules.
More information about the Digitalmars-d-learn
mailing list