On Tue, Feb 15, 2005 at 11:03:09PM -0800, Larry Wall wrote: > On Wed, Feb 16, 2005 at 02:29:36PM +0800, Autrijus Tang wrote: > : 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) > > The latest S12 has it as bool::true and bool::false.
S03 still indicates that boolean operators return "a standard boolean value (either 1 or 0)". Are we continuing with 1 and 0 as the standard boolean values, or bool::true and bool::false? More to the point, what's the return type of something like &infix:«>» ? Pm