pjforde1978
7 years agoVisitor
BrightScript feature request: string interpolation
Coming from Ruby/ES6, there are some language niceties that would go a long way towards increasing developer happiness which perhaps your team could borrow. Top of mind is string interpolation:
In JavaScript, we have to use backtick strings to interpolate, likely for backward compatibility:
Again, I wouldn't presume to know how hard or impossible this would be in the context of the BrightScript black-box, but I'd love to hear more.
' Ruby-style
user = "PJ"
return "Welcome back, #{user}!"
In JavaScript, we have to use backtick strings to interpolate, likely for backward compatibility:
' ES5/ES6 style
user = "PJ"
return `Welcome back, ${user}!`
Again, I wouldn't presume to know how hard or impossible this would be in the context of the BrightScript black-box, but I'd love to hear more.