@wycats @stefanpenner As @jaffathecake said, the impulse "I have a function with a single string argument! Let's use tagged templates!" >
-
-
Replying to @domenic
@wycats@stefanpenner@jaffathecake > is similar to the "I have a method that takes no arguments! Let's use a getter!" misguided path.1 reply 0 retweets 0 likes -
Replying to @domenic
@wycats@stefanpenner@jaffathecake The "logic" in both cases is very similar, e.g. "easier to scan" and so on.1 reply 0 retweets 0 likes -
Replying to @domenic
@domenic@stefanpenner@jaffathecake I think I'm just missing what you believe is the platonic essence of template literals.2 replies 0 retweets 0 likes -
Replying to @wycats
@wycats@stefanpenner I keep seeing@domenic and@jaffathecake try to clarify that they're referring to _tagged_ templates...1 reply 0 retweets 2 likes -
Replying to @justinfagnani
@justinfagnani@stefanpenner@domenic@jaffathecake if the rule is "${} has to mean something special" then "no interpolation" qualifies2 replies 0 retweets 0 likes -
Replying to @wycats
@justinfagnani@stefanpenner@domenic@jaffathecake but surely strip` foo bar${interp} baz ` is fine too1 reply 0 retweets 0 likes -
Replying to @wycats
@wycats@justinfagnani@stefanpenner@jaffathecake Why do that? It disallows strip(stringPassedAsAnArg), to save you two chars.1 reply 0 retweets 0 likes -
Replying to @domenic
@domenic@justinfagnani@stefanpenner@jaffathecake strip([arg]) works1 reply 0 retweets 0 likes -
Replying to @wycats
@domenic@justinfagnani@stefanpenner@jaffathecake also allows you to have a policy around whether to strip leading interpolated WS1 reply 0 retweets 0 likes
@domenic @justinfagnani @stefanpenner @jaffathecake or just literal whitespace.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.