Hacker News new | ask | show | jobs
by BiteCode_dev 1649 days ago
The 3rd solution is terrible, because:

    ForMid = 4 # padding for middle box in px
And:

    FormId = 3 # ID of the form in the user process
Should definitely not be resolved as the same variable.
1 comments

The only thing worse than 3 is 2.
I don’t remember the exact options, but there’s a way to make Nim emit warnings (and perhaps errors) for inconsistent capitalization.

It isn’t the default, though.

The options are nim c --styleCheck:hint --styleCheck:usages (you need both). Though not on by default you could put it in your config.nims or nim.cfg's to make it on by default for you or for your code.