Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
thescrewdriver
12y ago
0 comments
Save
Share
fmt.RichPrint("....")
0 comments
3 comments · 1 top-level
top
newest
oldest
greiskul
12y ago
· 2 in thread
And how would this function capture variables from the local scope? The only way this could be added would be with new syntax.
thescrewdriver
OP
12y ago
I haven't dug into the details, but here's how Scala went about adding string interpolation:
https://docs.google.com/document/d/1NdxNxZYodPA-c4MLr33KzwzK...
dilap
12y ago
That's what I was thinking, but now that you mention it, all that is needed is to have introspection gain the ability to examine local variables up the stack, so I guess it's do-able w/ back compat after all.
I wouldn't hold my breath, though.
j
/
k
navigate · click thread line to collapse