News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by Tarean on Wednesday February 10, 2021 @04:43PM (#26095219)
To be fair, that's a foot gun in haskell as well. Using lists non-linearly like this in haskell gives you the correct results but at a 10x performance tax or worse because it can't optimize into a loop anymore.
Re:Pattern matching accepted for Python by mumblemumble on Thursday February 11, 2021 @09:23AM (#26101753)
At least to me, a footgun goes beyond a mere performance gotcha. There's a whole category difference between, "If you do this, the compiler may not be able to optimize your code as well," and, "If you do this, your code may produce incorrect results."