Page MenuHomePhabricator

boolean converter
Closed, DeclinedPublic

Description

the patch (tm)

Sometimes you want to be able to decide if a parameter is "true" or "false". To make it easier, I propose a boolean function, as specified in accompanied patch. Perhaps some more words could be added, and language specific translations to be implemented (though I don't know where I should put it). I took the decision to say that negative numbers are false.


Version: unspecified
Severity: enhancement

Attached:

Details

Reference
bz10622

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:54 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz10622.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Too specialized and language-specific to be worth writing into the extension itself. Users can make a template. Recommend WONTFIX.

cannon.danielc wrote:

Thirded. Too specialized a purpose for a parser function. I agree with Simetrical -- this is better suited as a template on an individual project, not something in the extension itself that will need to be supported. Parser functions should really be reserved for cases that *can't* be handled by templates.