Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
davepeck
1y ago
0 comments
Save
Share
T-strings, like f-strings, are eagerly evaluated -- so in this sense, no, there's no benefit.
0 comments
2 comments · 1 top-level
top
newest
oldest
trashburger
1y ago
· 1 in thread
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
1y 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