reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.13k stars 430 forks source link

ES6 like template string literals #899

Closed bordoley closed 2 months ago

bordoley commented 7 years ago

ES6 string templating is a really powerful addition to javascript. Has any thought been given to adding similar support in Reason? Effectively these expressions could be translated into sprintf calls, although care would have to be taken to choose which format parameters to use by default for integer and float types.

vramana commented 7 years ago

This is already a requested feature. @SanderSpies says there are couple of blocking issues before we can get this feature.

eriklott commented 6 years ago

Are ES6 template literals still being considered? VDom alternatives like HyperHTML and LitHTML are starting to gain traction, and rely on template literals to work.

It would be exciting to see this feature supported. Adding a view layer to a reasonml app would be effortless...

anmonteiro commented 2 months ago

tracking this in https://github.com/reasonml/reason/issues/2603