3 ms·
If you are looking for an ML dialect that has a more 'familiar' syntax, check out Rescript: https://rescript-lang.org/docs/manual/latest/overview https://rescr
by eterps 4y ago
If you are looking for an ML dialect that has a more 'familiar' syntax, check out Rescript:
https://rescript-lang.org/docs/manual/latest/overview https://rescript-lang.org/docs/manual/latest/overview
Although personally I prefer the syntax of F# (but I don't like the .NET focus of it).
- giraffe_lady 4y agoRescript extremely underrated imo. For self-contained projects it's strictly superior to typescript: its type system is simultaneously easier to work with and more sound, with better type inference. The tooling isn't better per se but it's easier to use. If you have dependencies it depends. Writing bindings to all of them can take up a lot of time. Gentype from typescript types is often enough, but not always. Hope to see this one catch on a lot more. It's an incredible alternative to typescript.
- eterps 4y ago> For self-contained projects it's strictly superior to typescript: its type system is simultaneously easier to work with and more sound, with better type inference. Exactly, typescript is a highly complex addition to a relatively messy language (JS). Rescript feels like what Typescript could have been, a cleanup of JS and a sound typesystem and excellent type inference. (however breaking compatibility as a consequence) IMO Rescript is easier to read than plain JS and still it's fully typed.
- haskellandchill 4y agoThere aren't degrees of soundness, it's either unsound (TypeScript) or sound (Rescript).
- giraffe_lady 4y agoI mean zero to one is still "more" right? Anyway thanks idk shit about type theory and I didn't go to college I just write code for money.
- hencq 4y agoIf you like F# but not .NET, Fable might also be worth a look: https://fable.io/ https://fable.io/
- deleted 4y ago[deleted]
- pjmlp 4y agoThat is exactly the kind of thing I refer to, with guest languages coming up with their alternatives instead of embracing the platform, and in this case F# isn't even a guest language.
- jhvkjhk 4y agoRecently I tried to use it until I found out it doesn't support inheritance. The only option is using the include keyword in modules but that's discouraged.