[ANN] `@rescript/language-server` and `@rescript/tools` released
You can make it open res files in ReScript lang by adding this to your config, afaik it’s a limitation in Zed now, extensions don’t get to configure this from what I’ve seen so far: "file_types": {...
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
@zth sorry for hijacking this thread Shall I create a new thread to continue the Zed chatter?
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
I don’t mind, but a dedicated thread might be good for visibility, so go for it.
View Article[Article]: Tired of Typescript? Check out ReScript!
DEV Community Tired of Typescript? Check out ReScript! If you've spent any amount of time developing with JavaScript you have probably found it difficult to... I’ve been slowly working on this for a...
View Article[ANN] ReScript v11.1 is out!
Today we released ReScript v11.1.0! It builds upon the foundation laid by ReScript 11.0 earlier this year and comes with a host of exciting additions. Beside the usual bug fixes there are the...
View ArticleSpice syntax for variants with argument
Hello all, I’m trying to migrate from decco to ppx-spice and I’m wondering how to migrate the following type: type gameType = | StandAlone | Master(string) | Slave(string) Can anyone help me? Thanks!...
View ArticleMinimum cut code relocation?
mouton: The result is often a function where the input or output types strongly reference another module. Isn’t this also an advantage? I have one philosophy here. Similarity of declaration is...
View ArticleDomain modeling in Rescript - Resources, Patterns?
I did a quick write up on using Variant types for business logic: Using variant types in ReScript to represent business logic - DEV Community It’s based on the domain driven design book/talk by Scott...
View ArticleSpice syntax for variants with argument
Okay so I understand from docs/GUIDE.md in https://www.npmjs.com/package/@greenlabs/ppx-spice/v/0.1.15?activeTab=code that I can use: // generates the functions gameId_encode() and gameId_decode()...
View ArticleSpice syntax for variants with argument
I am currently on: "@greenlabs/ppx-spice": "^0.1.15", "@rescript/react": "^0.11.0", "react": "^18.2.0", "react-client": "^1.0.1", "react-dom": "^18.2.0" "rescript": "10.1",
View ArticleSpice syntax for variants with argument
What’s the ppx-flags field in the bsconfg.json?
View ArticleDomain modeling in Rescript - Resources, Patterns?
Check this out for DDD practices with event sourcing in a ReScript codebase Still going strong - but how do I become a guru? I don’t know if this is an off-topic answer. It may be far from how to...
View ArticleOh no, we're toast because of PPX usage
Okay, in truth that subject was clickbait. We’re not toast. But we do have a potential huge load of work in front of us. The Problem Day One has 105k lines of Rescript code that runs its backend that...
View ArticleOh no, we're toast because of PPX usage
I really hope there’s a straightforward answer to this.
View ArticleSpice syntax for variants with argument
It was set to this: "ppx-flags": [ ["@greenlabs/ppx-spice/ppx", "-uncurried"] ], Removing the “-uncurried” option seems to get me further Thanks for pointing me in the right direction!
View ArticleShim alternative for genType RescriptCore types
I realize now that previously to resolve this we would use shims (it’s been a while). But seeing as how those are deprecated now (TypeScript | ReScript Language Manual) is there a suggested alternative?
View ArticleRescript bindings for Graphql Codegen
I’ve now made an (admittedly simple) example repository, which uses some additional tweaks I made to bind to and use @apollo/client, along with updating the documentation with some extra usage details!
View ArticleOh no, we're toast because of PPX usage
Wouldn’t it be much easier to just search and replace @decco annotations to replace them with ppx that are still supported like spice or rescript schema?
View ArticleOh no, we're toast because of PPX usage
Several options here. OTOH just like @tsnobip says, migrating to Spice might be an option? GitHub - green-labs/ppx_spice: ReScript PPX which generates the JSON (de)serializers Anyway, bear with me...
View ArticleShim alternative for genType RescriptCore types
There’s quite some work happening in the background to change how genType works, to remove any runtime from it, but in the meantime I think you’ll still have to use shims. It’s just weird that it...
View Article