Front page | perl.perl6.language |
Postings from February 2005
Boolean literals
Thread Next
From:
Autrijus Tang
Date:
February 15, 2005 22:31
Subject:
Boolean literals
Message ID:
20050216062936.GA59153@aut.dyndns.org
Just a quick question. The prettyprinter of Pugs (the thing that
handles the ".perl" method) currently prints out boolean true and
false as #t and #f, which is obviously not correct.
pugs> (1 > 2, 2 > 1)
(#f, #t)
What should I do, though? Inventing two primitives, "true" and
"false"? Or is there a way to annotate values with types, similar
to Haskell's "::" construct?
pugs> (1 > 2, 2 > 1)
(0 as Bool, 1 as Bool)
Thanks,
/Autrijus/
Thread Next
-
Boolean literals
by Autrijus Tang