memesearch
Conditional Baptism in Haskell

Conditional Baptism in Haskell

Download Find similar pictures
Text on the meme
Conditional baptism From Wikipedia, the free encyclopedia A conditional baptism is a baptism performed in such a way as to only be effective if the person is not already baptized. In a conditional baptism, the minister of the sacrament says: "If you are not yet baptized, I baptize you in the name of the Father and of the Son and of the Holy Spirit."[1] Written in Haskell, this can be expressed as: baptize :: Person -> Maybe Person baptize p | alreadyBaptized p = Nothing | otherwise = Just (markBaptized p) conditionalBaptize :: Person -> Person conditionalBaptize p = maybe p id (baptize p)
What it means

На скриншоте статьи Википедии объясняется условное крещение, а затем обряд записывается как функция на языке Haskell. Шутка в том, что религиозное правило неожиданно превращено в типизированный программный код с обработкой уже крещёного человека. EN: A Wikipedia screenshot explains conditional baptism and then expresses the ritual as a function in Haskell. The joke is that a religious rule is unexpectedly transformed into typed programming code that handles a person who may already be baptized.

Objects
Tags
Source
Type
image
Size
800×615 · 71.4 KiB
Mood
absurd, ironic
Language
en
Added