mustache/spec — Issue #28: Clarify what the empty string should be treated as.
Author: thegrandpoobah
Created: 2011-12-08 19:09:17+00:00
State: open

As part of what constitutes truthiness, the spec uses the `!!` operator as an example for determining truthiness (in the section.yaml file). The problem is that in JavaScript (and possibly other languages, have not tried), the empty string would be coerced into a false value using that logic. Arguably this is not the intented behaviour, but this is never explicitly stated and currently open to interpretation and implementation differences. Although implementation differences are okay in some circumstances, I think this one should be eliminated by explicitly stating the role that the empty string plays.

For reference, consider the following issues logged under Mustache.js (although not spec-compliant, it is close enough in regards to truthiness to validate **this** issue):

* https://github.com/janl/mustache.js/issues/94
* https://github.com/janl/mustache.js/issues/120 (somewhat related).