Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Andrei Dascalu
Andrei Dascalu

Posted on • Edited on

     

Typescript vs ReasonML

A while ago I ran into this thingie:https://blog.dubenko.dev/typescript-vs-reason/

I started digging into ReasonML and found that I loved it, even more as you can do React with ReasonML.

So I wonder, given all the advantages of ReasonML, how come it's not at least as popular as Typescript?

Edit: ReasonML is supported and created by the same guy that created React.

Top comments(12)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
phuctm97 profile image
Minh-Phuc Tran
Engineer. Building open-source tools and tutorials ➡️ twitter.com/phuctm97.
  • Location
    World
  • Education
    B.Eng. in Software Engineering
  • Joined

The ecosystem and community have always to be developed separately from the product. There’s little effort in it now for ReasonML, Elm, Elixir, etc. There gotta be someone doing that to make a great product competent in mass market.

CollapseExpand
 
andreidascalu profile image
Andrei Dascalu
  • Location
    Cluj-Napoca, Romania
  • Joined

I am not entirely sure what you mean. Yes, there should always be an ecosystem and community but to which extent they must be separated from the main product it's debatable. Even for Go the core tooling and standard library are developed together with the core platform. Seems to be going well (aka core team + community support) which I guess works when you have decent money commitment behind. Same for Elixir. Not sure how things stand with ReasonML though.

CollapseExpand
 
phuctm97 profile image
Minh-Phuc Tran
Engineer. Building open-source tools and tutorials ➡️ twitter.com/phuctm97.
  • Location
    World
  • Education
    B.Eng. in Software Engineering
  • Joined

Sorry for the confusion. What I mean is to have mass adoption, there must be an advocate team dedicated to engaging with the community, talking about it, helping companies and people adopt it, otherwise it is hard to become popular.

Thread Thread
 
andreidascalu profile image
Andrei Dascalu
  • Location
    Cluj-Napoca, Romania
  • Joined

Oh yes, that makes sense. Definitely missing, though I also have the feeling that Typescript took off largely due to Microsoft boost rather than any organic community. Ironically, ReasonML boasts Facebook as a supporter but that goes under the radar. I would love to see the community growing, that's for sure!

CollapseExpand
 
0916dhkim profile image
Danny Kim
  • Location
    Toronto, ON
  • Joined

I also came across ReasonML recently, and really get to like its syntax. I have yet to see the benefits of runtime type-safety (compared to type-erasure of TS), but it is undeniable that ReasonML is an interesting programming language. How was your experience with ReasonML + React?

CollapseExpand
 
andreidascalu profile image
Andrei Dascalu
  • Location
    Cluj-Napoca, Romania
  • Joined
• Edited on• Edited

Very seamless, but I just did some basic stuff (eg, a photo management tool , just for practice). For me it was refreshing to not have to check for undefined and nulls every other line + no unexpected undefined, etc + the very concise reducers.

CollapseExpand
 
0916dhkim profile image
Danny Kim
  • Location
    Toronto, ON
  • Joined

Awesome! I will play with reason react this weekend and see what I can get out of it. Thanks for sharing.

CollapseExpand
 
johnkazer profile image
John Kazer
Interested in making life easier and smarter. Amazed by the power of the modern web. solarfuture.org.uk
  • Location
    Cambridge, UK
  • Joined

Thanks for that. I was investigating ClojureScript but reason definitely worth a look.

Maybe because it's functional and many teams not yet bought into that approach? Although lots more interest in FP now and growing I think.

Also there are a few alternatives, such as ClojureScript, Elm, purescript etc. and which to choose?

Also how is the tooling and beginner journey? ClojureScript on Windows for example is tough to set up as main official help is only Linux (that I found)

CollapseExpand
 
andreidascalu profile image
Andrei Dascalu
  • Location
    Cluj-Napoca, Romania
  • Joined

What ReasonML seems to have over Elm, at least, is full interop with js ecosystem. With risks, of course.

CollapseExpand
 
epsi profile image
E.R. Nurwijayadi
I am not a time traveller.
  • Location
    Jakarta
  • Work
    Mr. at Sunday Market
  • Joined

How do I setup concurrency in ReasonML 🤔?

CollapseExpand
 
andreidascalu profile image
Andrei Dascalu
  • Location
    Cluj-Napoca, Romania
  • Joined

Hm, depends on what you mean. Working with async has gotten better (egghead.io/lessons/reason-async-aw...) but to go forward in ways that TypeScript and Reason can't really get to as long as they stick to running pure JS, probably ReScript can do better.

CollapseExpand
 
epsi profile image
E.R. Nurwijayadi
I am not a time traveller.
  • Location
    Jakarta
  • Work
    Mr. at Sunday Market
  • Joined

Thank you for your response.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Cluj-Napoca, Romania
  • Joined

More fromAndrei Dascalu

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp