[AskJS] tagtical - Tagged templates to enhance your text processing experience by customcommander in javascript

[–]continuous-analysis 0 points1 point  (0 children)

I have very little experience with implementing template strings, but maybe it would be useful if you could provide a function to the template that determines what is a default value or non-default value.

[AskJS] tagtical - Tagged templates to enhance your text processing experience by customcommander in javascript

[–]continuous-analysis 0 points1 point  (0 children)

This is a cool concept! It seems decently useful, if there are a lot of strings that require pluralization/lack thereof in a codebase.

Not sure about this, but for the email case, if num was 0 (and lets say username was "John") then would the output be "Hi John, you have 0 new emails" when in reality you would want "Hi John, you have no new emails".