Earlier quoted context omitted.
Interesting, can you link me? EDIT: I just tried in the TypeScript Playground (v3.9.2), it's actually rather worse than I thought, it prints not 'false' but the actual function itself as a value...
https://devblogs.microsoft.com/typescript/announcing-typescr... Edit: Apparently the functionality already exists as of 3.7. The update in 3.9 was to add it to ternary operations as well
Reason React 0.8
81–85 of 85 posts
Re: Reason React 0.8
#82Re: Reason React 0.8
#83The long awaited 0.8.0 release from Reason React is out of beta! This includes a lot of the niceties of writing React but in a very fast, type safe language. If this is your first time hearing about Reason, watch a video from its creator (Jordan Walke, creator of React) to learn more: https://www.youtube.com/watch?v=5fG_lyNuEAw&t=11s Fun facts about Reason: - exports TypeScript! If you have a TS project and looking f…
Awesome! Question, say you use TypeScript already, what are the biggest tangible gains in terms of safety (measured by fewer bugs in production) you think can be achieved by using Reason?
TS fixes some of JSs issues, but many it cannot fix by still being a super set of JS.
Reason is similar (enough) to JS syntax-wise, while not having to deal with it's quirks. This is huge for me.
Re: Reason React 0.8
#84Earlier quoted context omitted.
I think "getting OCaml features at a slower rate than OCaml itself does" counts as "falling behind", yes. 2015 OCaml was an excellent language. 2020 OCaml is exquisite.
What feature of 2020 OCaml do you think would convince JS developers to use Reason?
Re: Reason React 0.8
#85Earlier quoted context omitted.
What feature of 2020 OCaml do you think would convince JS developers to use Reason?
Monadic let syntax would be a big win (allows for async/await-like constructs) in Bucklescript, and inline variant records have been nice once or twice (I see reason newcomers at dojos do this naturally almost every time shortly after introducing variants).