Quantcast
Browsing all 1784 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

@deprecated only works on external?

I’d be interested to see a POC

View Article


@deprecated only works on external?

Of course I wont now which is jus as well.

View Article


How I unboxed a enum type from object to array?

did you figure it out?

View Article

Rescript bindings for Graphql Codegen

Had some free time, and realized I never actually added a plugin for generating the base types (enums + input objects) of the schema, so went ahead and remedied that.

View Article

$$prefix from build output

While building rescript code, I found some functions have a $$ prefix on the js output. In my case, it was Js.Float.isFinite. What’s the $$ meaning for? Are there any options or methods not to add...

View Article


$$prefix from build output

$$ prefixes are used as keyword ambiguity prevention in Js. E.g “let default = …” in ReScript will be compiled to “const $$default”

View Article

$$prefix from build output

Oh, thanks for the reply! never thought of that.

View Article

Image may be NSFW.
Clik here to view.

Tabs as 4 spaces indentation, is it possible?

I am using a Georgia (Serif) font and its spaces are smaller. I would like to change the formatting of ReScript to use 4 spaces instead of 2 spaces for indentation. Is this possible in VSCode? I tried...

View Article


Tabs as 4 spaces indentation, is it possible?

Most likely impossible. Rescript formatter is opinionated: you don’t configure it, you just consume it as is. And I don’t think many people use proportional fonts for code, so I wouldn’t expect your...

View Article


Support for frameworks other than React

Are there any plans to add support for using the language with frameworks other than React? Currently the language seems like it is built around the premise that it will be used with React, or at...

View Article

Image may be NSFW.
Clik here to view.

Support for frameworks other than React

React was the only framework with jsx, which was supported natively. In the newest version, you can write your own jsx transform functions, so it is possible to support a lot of other frameworks. Have...

View Article

$$prefix from build output

in this case, should gentype respect the prefixed name? the name of the generated type is original(non-prefixed), but the js isn’t.

View Article

Compile-step frontend frameworks and rescript

I’ve read in this forum and on reddit that frameworks like vue and svelte are challenging to work with using rescript due to their build step, but have not found an in-depth explanation. Does anyone...

View Article


Resi conflict when uncurried (v11)

Getting error when creating a resi file using uncurried in v11: The implementation /ventas/src/components/PvcWindow.res does not match the interface src/components/pvcWindow-Ventas.cmi: ... In module...

View Article

Which are the recommended warnings for rescript.json v11+?

Which are the recommended warnings for rescript.json v11+? I see in the docs it mentions: "warnings": { "number": "-44-102", "error": "+5" }, I used to have "warnings": { "number": "+A-42-48",...

View Article


Resi conflict when uncurried (v11)

You should add @@uncurried to interface as well

View Article

Resi conflict when uncurried (v11)

I tried but doesn’t seem to have any effect on it. Same error

View Article


Compile-step frontend frameworks and rescript

It’s not really an issue with them being compiled frameworks, the issue is that they have unique file formats and structures (.svelte and .vue). These files are a mix of JS, HTML, and CSS. The JS in...

View Article

Image may be NSFW.
Clik here to view.

Compile-step frontend frameworks and rescript

jderochervlk: It’s not really an issue with them being compiled frameworks It is an issue. Unlike Svelte or Vue, SolidJS is vanilla JS[X], syntax-wise, yet it’s compiled and uses a Babel plugin....

View Article

Compile-step frontend frameworks and rescript

Yeah, we should eventually be able to support solid.js, but I don’t think we’ll ever be able to handle .vue or .svelte files.

View Article
Browsing all 1784 articles
Browse latest View live