jashkenas/coffee-script — Issue #2088: object.property? or object.getter? should cast boolean
Author: ollym
Created: 2012-02-02 12:39:10+00:00
State: open

CoffeeScript seems to follow Ruby pretty closely - so why can't this be the case?

foo.bar? currently translates to (foo.bar != null) but I think it would be better to translate to (!! foo.bar)