ds26gte / pyret-lang

The Pyret language.
Other
2 stars 0 forks source link

Booleans display as #f or #t #6

Closed Emmay closed 8 years ago

Emmay commented 8 years ago

Should return true or false, eventually.

ds26gte commented 8 years ago

While this can be done, is it not confusing that something that can be a valid lexical variable (i.e. true, false, e.g., in the expression (lambda (true) true) which is the identify function) also be used as a quasi-literal? Currently, true and false are global variables bound to the literals #t and #f. Would #true and #false be OK?

Emmay commented 8 years ago

Sure, I'd be OK with #true and #false.

ds26gte commented 8 years ago

Fixed in ds26gte/code.pyret.org@bd03404. Boolean values now render as #true and #false.

schanzer commented 8 years ago

Awesome. Can one of you close the issue? I don't seem to have access