functional programming - What are some intuitions that support calling the Maybe constructor in Haskell "Just"? -


the intuition of optional type maybe int either there no int (thus, there's nothing there) or there some int; there there.

it makes sense me call type constructor "negative" case nothing, since means -- there's no int there. why use word just in case emphasis on actually being there?

to me, word "just" carries connotation thing it's describing less alternative; opposite of being there; example,

a: doing tonight?

b: no; i'm just gonna stay in , watch tv.

a: did investigate creepy ghost sounds around house?

b: yeah, turns out just owl.

clearly i'm lacking whatever intuition naming choice based on. it? because me, word just means opposite of how it's used in maybe type.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -