JeanJPNM

Results 11 comments of JeanJPNM

I just came here to say that pull request #119 is open since the last two weeks

I converted this into a draft to make the current status of the changes clear

The compiler does know that javascript has classes, but it doesn't know what to do with them, so it throws an error. The main problem with allowing "implicit" formatting is...

> Doesn't the compiler can trust variables or argument ' types when the type is declared > > function foo(a : Point, b : Square) The main reason for the...

Hi, thanks for filing an issue. This problem will be fixed by #222.

> Why not just include a file (at the parser level) ? Because mlogjs doesn't actually do the parsing by itself, it uses [babel](https://github.com/babel/babel) to parse the code and then...

This will be fixed by #222. This is a consequence of the current implementation of function inlining, which essentially replaces the parameters in the function body by the received values,...

Seems like the best approach is creating a `printf` function that only takes a string template as a parameter and has consistent formatting rules

Implementing `String.dedent` from [this proposal](https://github.com/tc39/proposal-string-dedent) might prove more benefitial, as it would work with other functions such as `concat`. ```js function printPoint({ x, y }) { String.dedent(print)` Point { x:...