Gabriel Nordeborn
Gabriel Nordeborn
Dict should be promoted to a built in type and specialized that way instead.
@cristianoc please have a look at whether this approach is good and if the optimization is in the correct place. Maybe it could be put somewhere else? When Core moves...
> `dict` will be an builtin type? If we go ahead with this then yes, it should be moved to be a builtin. I also agree spreading would be nice...
Awesome stuff! Having a look soon.
> It would be great if we could get > > ```rescript > let demoDict = dict{"a": 1, "b": 2} > ``` > > to compile to > > ```js...
Here's the PR for reference: https://github.com/rescript-lang/rescript-compiler/pull/6538
This, and `$` etc which is needed for Remix routes, would be good.
For this to fully work with JS conventions there also needs to be a way to have the exact same file names in multiple folders, right?
Yes, good point.
@mununki that would work well too. My thinking was mostly that React is special cased there, but that probably doesn't matter. Putting it directly in `module` works 👍