hoon: compile +bool to constant

And use hoon-style boolean syntax instead of numberic literals.

Co-authored-by: joemfb <joemfb@users.noreply.github.com>
This commit is contained in:
fang 2022-07-01 14:48:40 +02:00
parent 317a8f66f3
commit bf9d3752e0
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -7181,7 +7181,10 @@
::
:::: 5a: compiler utilities
::
++ bool `type`(fork [%atom %f `0] [%atom %f `1] ~) :: make loobean
++ bool :: make loobean
^~ ^- type
(fork [%atom %f `%.y] [%atom %f `%.n] ~)
::
++ cell :: make %cell type
~/ %cell
|= [hed=type tal=type]