satyr/coco — Issue #113: Feature: Specify own function for joining parts of string interpolation
Author: thejh
Created: 2012-02-14 16:42:46+00:00
State: open

Hello,

I've been thinking about porting https://github.com/jashkenas/coffee-script/pull/2050 to coco, which requires changes like this one all over the nodes code:

```diff
- "#res.push"
+ @s res, '.push'
```

And this is one of the not-so-bad examples. Maybe it'd be possible to create a new syntax for this? Ideas:

"#res.push" with @s
"#res.push" @s

Basically, this would transform into a call with an array containing the parts of the string interpolation as last argument.

On the other hand, this is pretty special-case and not exactly good-looking either. What do you think?