rescript-compiler
rescript-compiler copied to clipboard
better print string concatenation
instead of print it as
a ^ (b ^ c)
print it as
a ^ b ^ c
I would love to work on this, is it still available?
yes, it is, thanks!
On Mon, Aug 28, 2017 at 7:50 AM, Glen De Cauwsemaecker < [email protected]> wrote:
I would love to work on this, is it still available?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BuckleScript/bucklescript/issues/1534#issuecomment-325232787, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtmKxuaB2UzSYzLaqgVTcdPatuK2D57ks5scgDIgaJpZM4M5OFp .
-- Regards -- Hongbo Zhang
Does this include JS output for string interpolation? E.g., currently the output for the following:
let x = 1;
let y = false;
let result = {j|The number is $x, the condition is $y|j};
is this:
var result = "The number is " + (String(1) + (", the condition is " + (String(/* false */0) + "")));
In ReScript v9.1.2, this
let concat = (a, b, c) => a ++ b ++ c
let x = 1
let y = false
let result = j`The number is $x, the condition is $y`
compiles to
function concat(a, b, c) {
return a + b + c;
}
var result = "The number is " + 1 + ", the condition is " + false;
Does that mean this issue can be closed?
As far as I can see this is resolved already. Closing.