r/purescript • • Jun 09 '17

Why PureScript?

Hi all, I am searching to fulfill my dream of finding a language/ecosystem for elegant, strongly-typed web development. What would you say to convince me to learn & use PureScript? What makes it unique? Why use it over other the alternatives, such as Haskell, ReasonML / OCaml, FSharp, and so on?

I thank you for your opinion in advanced.

14 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/haterofallcats Jun 13 '17

Stupid question, but I really like how reasonml supports jsx. Does purescript support jsx? If not, are there any technical reasons for not supporting it?

2

u/nmdanny2 Jun 17 '17

You dont need JSX for PSX as PS's syntax is succint enough for expressing a UI.

1

u/gilmi Jun 13 '17

I'm not an expert, but JSX is as far as I can tell pretty much a React thing. It might make sense for Reason to support it since Reason and React are both developed by Facebook but IMO it does not make sense for PureScript to support it. A few reasons why:

  • PureScript has many UI solutions and not just react so it doesn't make sense
  • JSX and React might change and we'll be stuck with the question what to do now
  • Supporting JSX is both a fair amount of work and complicates the language by a fair amount
  • I'm sure there are more technical issues with it regarding to purity and such