KEMBAR78
Interpolations at beginning of strings compile to an empty string concatenation · Issue #3529 · jashkenas/coffeescript · GitHub
Skip to content

Interpolations at beginning of strings compile to an empty string concatenation #3529

@0xl3x1

Description

@0xl3x1

Any string interpolation occurring at the start of the string results in an empty string concatenation in the compiled JavaScript output.

For example:

"#{x}world"

compiles to:

"" + x + "world";

Note the empty string concatenation at the start of the output. It would be best if the compiled output was simply:

x + "world";

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions