Remix.run Logo
davepeck 8 days ago

T-strings, like f-strings, are eagerly evaluated -- so in this sense, no, there's no benefit.

trashburger 8 days ago | parent [-]

Not quite; the interpolations are not eagerly stringified which is the potentially expensive part. In this sense it's kind of a middle ground between the two approaches.

davepeck 8 days ago | parent [-]

Sure, good point; I generally think of evaluation, not stringification, as the likely dominant expense. But maybe it’s sometimes the other way around?