-
-
Replying to @BrendanEich
@BrendanEich Agree with@getify on this. Name "template" is usually meant to be smth that can be lazily populated with data multiple times.1 reply 0 retweets 1 like -
Replying to @RReverser
@RReverser Please give a concrete example. And give Ruby and Python versions.@getify2 replies 0 retweets 0 likes -
Replying to @BrendanEich
@brendaneich example: every single "template engine" ever invented.@rreverser4 replies 0 retweets 1 like -
Replying to @getify
@getify@BrendanEich@RReverser I've written a template engine and it's a niche case compared to simple string concatenation.2 replies 0 retweets 0 likes -
Replying to @wycats
@wycats@brendaneich@rreverser a template literal is a one-time use "template"… like an IIFE.1 reply 0 retweets 0 likes -
Replying to @getify
@getify@BrendanEich@RReverser What, concretely, is your proposal?2 replies 0 retweets 0 likes -
-
Replying to @getify
@getify@BrendanEich@RReverser String interpolation *by far* dominates over that use-case.3 replies 0 retweets 0 likes -
Replying to @wycats
@wycats@brendaneich@rreverser and i find that to be 1000% more useful than single-use interpolation.2 replies 0 retweets 1 like
@getify @BrendanEich @RReverser Look through your code for strings being concatenated in place. Those can become interpolations.
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.