News for hackers. Stuff that matters.
Re:Swap_8_and_9: A simple import can modify the Python inter... by codeflo on Wednesday August 09, 2023 @02:55AM (#37059490)
The Haskell one is not that spectacular if you understand that operators are just functions in that language:

    λ> let 2+2=5 in 2+2
    5
This simply defines a new local function that happens to be called "+". It's no different than something like this in JavaScript:

   let Math = { sqrt: (x) => 42 };
   console.log(Math.sqrt(16));

There are no comments on this comment yet.