Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2602 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Compiler hanging on v11.4 with uncurried enabled

We’re using the built-in rescript builder. I checked the amount of @spice and found out around 2600 (of course it includes variant aliasing and not just type declaration) I’m not sure how to make a...

View Article


Compiler hanging on v11.4 with uncurried enabled

you could try with rewatch to see if it’s the builder or the compiler. Did you try using older versions of the compiler?

View Article


Image may be NSFW.
Clik here to view.

Compiler hanging on v11.4 with uncurried enabled

I tried rewatch and have the same issue, sometimes it can parse every files but hang on the next step or it hangs during the parsing. I tried the 11.1.0 without success, and I have a strange issue...

View Article

Compiler hanging on v11.4 with uncurried enabled

Yeah, rewatch is very fast! Si there’s no error with 11.1.4? It just hangs? Weird. Could you try with the latest v12 alpha maybe?

View Article

Use `_` to mark properties as private

Also interested in this or some way of doing privates. Doubling the amount of files (res/resi) isnt what I want.

View Article


Image may be NSFW.
Clik here to view.

Is `lazy` gone or what?

According to docs: ReScript Documentation Lazy Value | ReScript Language Manual Data type for deferred computation in ReScript But lazy({...}) doesn’t even compile: The value lazy can't be found Is...

View Article

Is `lazy` gone or what?

What version of rescript do you use?

View Article

Is `lazy` gone or what?

I’m on 12 alpha.11 right now.

View Article


Is `lazy` gone or what?

oh yeah, the lazy keyword got removed from v12, the support was not perfect and it was not commonly used but the Lazy module and Lazy.t<'a> are still here. We should likely improve the Lazy...

View Article


Is `lazy` gone or what?

I think it’s almost fine as is. My two cents: No point in sugaring it only on the one side: lazy({}) as a sort of built-in, but no accessor (only fully qualified Lazy.force()) force is a particularly...

View Article

Is `lazy` gone or what?

The API you suggest is nice, looks like a good base for Stdlib.Lazy, we’d then deprecate the existing API which is not very idiomatic. I think we’ll keep Lazy.t abstract though. Regarding deref, we’re...

View Article

Emacs support for "modern" ReScript

I’m using ReScript with Emacs without any real issues. I just have to turn off inlayHints because they just generate LSP errors. Also, does anyone know how to get reanalyze to work with Emacs via LSP?

View Article

Emacs support for "modern" ReScript

Reanalyze is integrated straight into the vscode extension and is not via the lsp at all today. But, there’s no reason it couldn’t be IIRC. Just a matter of moving it there, and all users can benefit...

View Article


Emacs support for "modern" ReScript

I would love to see this! Kind of miss using reanalyze since it was put into rescript-vscode.

View Article

Colon type in @react.component external import

Looking at the documentation, what does @react.component(: confettiProps) in Import / Export ReactJS | React ? : confettiProps is crucial for the jsx transform to work. However, the docs do not at all...

View Article


Colon type in @react.component external import

It’s specifying the type for the “props” argument in React by inserting it after props to have it explicitly typed. It’s useful together with external, the let-bound equivalent would be:...

View Article

Colon type in @react.component external import

as @xfcw explained, the “colon type” syntax allows to use a predefined type for the props type of a react component instead of using the labeled argument syntax. Do note though that this syntax works...

View Article


Colon type in @react.component external import

@nojaf what do you think would be missing from the docs?

View Article

Colon type in @react.component external import

From a syntactic perspective, this is quite baffling. The (: typeName) notation is unlike anything I’ve encountered so far. To the untrained eye, this may appear to be invalid syntax. Where else can I...

View Article

I'm looking into using ast-grep fo linting ReScript. What rules should I...

hi, I think the issue comes from node22’s host image, say it is a different linux container. So the sg command resolves to a builtin linux command. See Command name alias: ast-grep and sg · Issue #56...

View Article
Browsing all 2602 articles
Browse latest View live