Created
January 17, 2011 22:03
-
-
Save ShimmerFairy/783583 to your computer and use it in GitHub Desktop.
Quantum Mechanics explained
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QuantumMechanics is Nature { | |
# Nature has $experiment | |
method new($experiment) { | |
self.bless(*, :$experiment); | |
} | |
method sane() { | |
no; # Nature contains this as an enum | |
} | |
method experiments() { | |
given $experiment.lc { | |
when "schrödinger" { | |
... | |
} | |
... | |
} | |
} | |
... | |
} | |
my QuantumMechanics $experiment .= new("double-slit"); | |
(say $experiment.run) xx 10; # output is completely insane. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment