Skip to content

Instantly share code, notes, and snippets.

@mkusher
Last active August 29, 2016 15:54
Show Gist options
  • Save mkusher/09b53dcd833b8f90eca09d65781dc686 to your computer and use it in GitHub Desktop.
Save mkusher/09b53dcd833b8f90eca09d65781dc686 to your computer and use it in GitHub Desktop.
Return true to win
<?php
namespace ReturnTrue;
// inspired by http://alf.nu/ReturnTrue
function transitive($a, $b, $c) {
return $a == $b && $a == $c && $b != $c;
}
function peano($a) {
return $a++ !== $a && $a++ === $a;
}
function symmetric($a, $b) {
return $a == $b && $a!=$b;
}
function nologic() {
return true === false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment