3 ms·
Well, it seems our disagreeme is obvious. You only want to talk about pure functions. I want to talk about ALL functions. So lets define the function "pure" s
by ukj 5y ago
Well, it seems our disagreeme is obvious.
You only want to talk about pure functions.
I want to talk about ALL functions.
So lets define the function "pure" such that
pure(f) -> True when f is a pure function
pure(g) -> False when g is an impure function
What would you say is the truth-value of pure(pure) ?
https://en.wikipedia.org/wiki/Impredicativity https://en.wikipedia.org/wiki/Impredicativity
- the_af 5y agodragonwriter 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.