This might be an interesting way to help with unicode support.
Translate a normal string in reason:
let str = "涓栫晫"
Into the quoted version of ocaml:
let str = {|涓栫晫|}
Or {js| if you prefer (both work for me, never really known what the difference is)
It's fixed in master: https://github.com/facebook/reason/pull/1838
hmm. It's cool that string contents aren't escaped anymore, but according to my read of the bucklescript docs without {js| |js} they'll still be escaped in the final JS output?
https://bucklescript.github.io/docs/en/interop-cheatsheet.html#string-unicode-interpolation
Yup that's true (playground example)
I wonder if the bucklescript repo is the right place for this? seems like it would be nice for all strings to be un-escaped.
Most helpful comment
It's fixed in master: https://github.com/facebook/reason/pull/1838