News for hackers. Stuff that matters.
Re:Correctness and composability bugs in the Julia ecosystem by dan-robertson on Monday May 16, 2022 @05:39PM (#31403456)
Why not have a feature to allow you to turn off the warning? E.g. have something recognise 1:length(x) and complain unless you write e.g. @nowarn eachindex before it.
Re:Correctness and composability bugs in the Julia ecosystem by kristofferc on Tuesday May 17, 2022 @01:32AM (#31406389)
Warning about such things is the job for a linter. There is a linter for Julia so such a thing could be added there. It shouldn't be a runtime warning though, like you propose.