Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
davepeck
11mo ago
0 comments
Share
T-strings, like f-strings, are eagerly evaluated -- so in this sense, no, there's no benefit.
undefined | Better HN
0 comments
default
newest
oldest
trashburger
11mo ago
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
OP
11mo ago
Sure, good point; I generally think of evaluation, not stringification, as the likely dominant expense. But maybe it’s sometimes the other way around?
j
/
k
navigate · click thread line to collapse