3 ms·
dragonwriter wrote: > "All impure functions have an implicit dependency on (some subset of) the state of the universe when they execute" You wrote: > "You on
by the_af 5y ago
dragonwriter wrote:
> "All impure functions have an implicit dependency on (some subset of) the state of the universe when they execute"
You wrote:
> "You only want to talk about pure functions. I want to talk about ALL functions."
Find the error.
- ukj 5y agoYou know what... let me take your red herring away from you. Forget the Time.now function. Here's a !=a as a "pure" function. In [1]: class A: ...: def __eq__(self, other): ...: return False ...: In [2]: a = A() In [3]: assert a != a In [4]: assert a == a AssertionError Will you now permit me to speak freely about A != A without you moralising about my reasoning? Will you now recognise my right to free speech and free thought, or must I fall in line?
- ukj 5y ago>Find the error. Still waiting for you to implement equal() as a "pure" function. We can discuss what you mean by "error" once we have a referent (that's not just in your head) to talk about.