import behavior
from afterlife import Heaven, Hell, Limbo
try:
behavior.good()
return Heaven()
except behavior.MoralsError as sin:
return Hell(sin)
else:
return Limbo() import behavior
from afterlife import Heaven, Hell, Limbo
try:
behavior.good()
return Heaven()
except behavior.MoralsError as sin:
return Hell(sin)
else:
return Limbo()(Bonus context for anyone surprised that it is valid code — Python actually allows you to use “else” in more places than you’d expect - `for ... else` is my favourite (do a for loop over a list of things, `break` if you find the thing that you’re looking for, and then the `else` branch will be taken if you don’t find what you’re looking for. Much cleaner than keeping track of a separate i_found_the_thing bool IMO))
Corrected code.
from behaviour import repentance
from afterlife import Heaven, Hell, Limbo
if person.is_baptised:
if (person.state == repentance):
return Heaven
else:
return Hell # FIXME define Hell
else:
# TODO I think we need something with Limbo here
return NoneAn improvement might look like this:
def judgement(soul):
in_grace = soul.state.is_graceful()
good_works = len(soul.works)
if in_grace: return 1 # Heaven
if good_works > MORAL_MINIMUM: return 0 # Limbo
return -1 # Welp.
Although, given the moral ambiguity of the spec, it might be better to use a language with more undefined behavior like C. Terry Davis addressed a lot of this when he built the third Temple in HolyC.I actually work parttime at a startup where we're trying to use web3 to establish permanent, digital identities that you can use in the afterlife to bargain with demons. The idea is, you can use an NFT (who says web3 is dead!) to correlate the atoms in the immortal eternal one-soul with their constituent souls on earth, so you can identify your friends in Heaven (or Hell). Eventually, we hope to even link people on earth to people on heaven, via our Rust-based AngelLink blockchain. A sort of "tower to the heavens" so to speak.
If anyone else on HN is interested in this space, feel free to email me (darigo.maxwell at gmail dot com). Always looking to make new friends who love God and have a passion for big data and the thirst for God's presence.
(also, yes, of course you'll need UB for Purgatory, etc.)