@mbrandonw In #8, is the right way to think about this type as "Something" as in "there exists…" So does Bottom mean "there does not exist…"
-
-
- View other replies
-
@cocoaphony for example, the empty tuple `()` -
@mbrandonw And I'm not clear how () applies. Can you implement Not<Void>? Is Void true? - View other replies
-
@cocoaphony Void would be true, and it's just a typealias for the empty tuple (). Same as the empty struct `Struct {}`. -
@mbrandonw If () is true, then is 1? (1,"a")? I see why Empty is convenient, but is it unique? -
@cocoaphony well 1 is a value, not a type. I guess that's the confusion. The empty tuple is acting as a type and a value: let x: () = () -
@cocoaphony sorry, maybe i shouldn't have used empty tuple as an example. -
@mbrandonw That makes sense. But is (Int, Int) true then? Or just "something else?" - View other replies
- Show more
-
-
-
@mbrandonw Curious about #2. Not just one possible answer, right? return { _ in { c, a in c } } return { g in { c, a in g(c, f(a)) } } -
@uint_min huh yeah, and you can even see why in the redundancy of the propositions, which leads to multiple proofs. -
@uint_min i think i included this so i'd have something to refer back to when i post something about transducers (that's `mapping`)
-
-
-
@mbrandonw Very nice post. One pedantic point: each of those functions can be implemented with a call to a noreturn function like abort :-) - View other replies
-
@clattner_llvm oof! i knowwww. clear sign of my brain being mostly in the math world :D
-
-
-
@mbrandonw Nice post! Takes me back to my symbolic logic course :) -
@pbowden good stuff!
-
-
@interstateone thanks for the kind words! -
@cbarrett thanks! (hit me up!) -
-
@mbrandonw interesting. Minor error: P⇒Q should mean Q false if P true and Q false, true otherwise. -
@an0 oof! good catch! will fix
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Brandon Williams
Rob Napier
Jordan Rose
Chris Lattner
Phillip Bowden
an0