3 ms·
Pretty much impossible to add at this point w/o breaking back-compat, though, right?
by dilap 13y ago
Pretty much impossible to add at this point w/o breaking back-compat, though, right?
- thescrewdriver 13y agofmt.RichPrint("....")
- greiskul 13y agoAnd how would this function capture variables from the local scope? The only way this could be added would be with new syntax.
- dilap 13y agoThat'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.
- thescrewdriver 13y agoI haven't dug into the details, but here's how Scala went about adding string interpolation: https://docs.google.com/document/d/1NdxNxZYodPA-c4MLr33KzwzKFkzm9iW9POexT9PkJsU/edit?hl=en_US&pli=1 https://docs.google.com/document/d/1NdxNxZYodPA-c4MLr33KzwzK...