[Feedback] Preserve JSX mode
Many thanks for your help! I created the sample repo now: GitHub - Fattafatta/rescript-v12-test: Test of JSX preserve mode and added some basic instructions in the README.
View Article[ANN] ReScript Roadmap 2025
Thanks for listening to JS developers Thanks for pushing Rescript as a safer Javascript instead of a web version of OCaml Thanks for opening JSX to support frameworks other than React Thanks for...
View Article[ANN] ReScript Roadmap 2025
So our requirements are that it needs to be both low-friction to drop us some money and ideally no or a miniscule share should go to the platform. Then it should also be easy (for companies esp.) to...
View ArticleInterest in Shadcn UI?
Hey guys, how’s progress looking? Would be interested in using this library.
View ArticleProposing new syntax for zero-cost unwrapping options/results
TL;DR – Proposing let? as a new syntax with zero‑runtime. An alternative to nested switches or Option.flatMap chains. It unwraps Ok/Some values and early‑returns on Error/None, and works seamlessly...
View ArticleProposing new syntax for zero-cost unwrapping options/results
One of the nicer patterns that this enables is using result + polymorphic variants for errors (AKA “errors as values”), in a way that makes it super simple to accumulate any errors that can happen and...
View ArticleProposing new syntax for zero-cost unwrapping options/results
@xfcw I remember you were looking for a solution for this, what do you think?
View ArticleProposing new syntax for zero-cost unwrapping options/results
Every now and then someone asked for something like this and it was more or less rejected (e.g. thread). What is different or what has changed your minds? Don’t get me wrong, I like the idea and the...
View ArticleProposing new syntax for zero-cost unwrapping options/results
I’ve always thought some kind of ergonomic enhancement to map / flatmap is needed for results to make them more useful, and happy to see this proposal. Are there rules to when they can be used? For...
View ArticleProposing new syntax for zero-cost unwrapping options/results
hellos3b: let foo = async () => { let? Some({c}) = m->Dict.get(id1) let? Ok(obj) = Decode.decode(c, decoder) Ok(obj) } No, since it’s a “continuation style” transform (it gets turned into a...
View ArticleProposing new syntax for zero-cost unwrapping options/results
One part is of course that - this surfaces as a wanted feature fairly often. Features along these lines have been up for debate from time to time, but this type of feature is difficult to find a good...
View ArticleInterest in Shadcn UI?
Sorry, I have been sidetracked with other things I’ve however started worrying a bit about choosing something Radix based like Shadcn, now with all of the drama around Radix. There’s also...
View Article[Feedback] Preserve JSX mode
Hi @Fattafatta , @cristianoc just fixed your problem in Fix issue with preserve mode where `jsx` is declared as an external w… by cristianoc · Pull Request #7591 · rescript-lang/rescript · GitHub You...
View ArticleProposing new syntax for zero-cost unwrapping options/results
Thanks for pinging me! I absolutely love this idea, I need it now. One thought that occurred: What if I want to unwrap and catch an error without bubbling it up? Rust has a let Ok(foo) = bar else {…}...
View ArticleProposing new syntax for zero-cost unwrapping options/results
I’m usually a fan of map and flatMap when using Option, but removing the runtime hit for calling functions is very appealing. Here’s I function I found in one of my projects. let query =...
View ArticleProposing new syntax for zero-cost unwrapping options/results
Not 100% sure I follow, but if you don’t want to bubble it you could just not use let? for that particular thing. You can still do whatever you want in between let?, just that the return type of the...
View ArticleBest practice developer copilot rules for React?
Can folks share what they are using for rules files in “developer copilot” enabled IDEs like Cursor, Windsurf, etc… Anybody found anything helpful beyond the non-rule based interactions?
View ArticleInterest in Shadcn UI?
Theo has summarized nicely on what happened with Radix and shadcn. Nice watch to get the context. Watch this if you use shadcn/ui
View ArticleBest practice developer copilot rules for React?
I had these rules a while ago in Cursor: - You use the latest ReScript v12 alpha. - Ensure suggestions match this version. Refer to the indexed ReScript manual. - Ensure any produced JSX matches the...
View Article