Re:Arturo Programming Language
by herrherrmann on Sunday October 16, 2022 @02:59PM
(#33226204)
Oh wow, I wonder what the Boolean value “maybe” is about! (It’s mentioned e.g. on the quickstart page.)
[ Parent
| on HN ]
Re:Arturo Programming Language
by Mathnerd314 on Sunday October 16, 2022 @03:37PM
(#33226540)
Testing in the playground:
and? maybe true = maybe;
and? maybe false = false;
or? maybe false = maybe;
or? maybe true = true;
if maybe then "t" else "f" = "t".
So some kind of 3-valued logic with a conversion to true.
if maybe then "t" else "f" = "t".
Wow, a very brave design decision :)maybe "null", can't think of anything else.
Re:Arturo Programming Language
by arturo-lang on Monday October 17, 2022 @07:33AM
(#33232149)
It's three-value logic :)
https://discord.com/channels/765519132186640445/829324913097...