News for hackers. Stuff that matters.
Re:How to store your app's entire state in the url by ajuc on Tuesday January 10, 2023 @03:16AM (#34321935)

    if ((v1.x()-v2.x())*(v1.x()-v2.x())+(v1.y()-v2.y())*(v1.y())-v2.y())+(v1.z()-v2.z())*(v1.z()-v2.z()) > distance*distance) {
        // collision
    }
Would you like this to fail to compile? Or would you prefer it to silently return the wrong value?
Re:How to store your app's entire state in the url by matthewmacleod on Tuesday January 10, 2023 @04:18AM (#34322286)
I'd prefer the compiler file an HR complaint against the author.
Re:How to store your app's entire state in the url by wstuartcl on Wednesday January 11, 2023 @12:25PM (#34341203)
if collisioncheck(v1,v2, distance) { // collision }

where you have defined an actually readable equivalent inside of collisioncheck would be my prerogative... I also agree paren matching failures should error, but your example is NOT why.