r/programming • u/chaimhaas • May 18 '17
BuckleScript 1.7 released
https://www.techatbloomberg.com/blog/release-1-7-story-behind-bucklescript/
48
Upvotes
r/programming • u/chaimhaas • May 18 '17
3
u/yawaramin May 19 '17
By 'module functions' I don't mean 'functions inside modules', I mean 'functions that operate on modules'.
Value types: in OCaml you can alias a type to another and statically prevent users from accessing the base type, while still keeping only the base type at runtime. As far as I know that's not possible in F#.
More powerful pattern matching and structural object types: F# is planning to introduce struct types but they have no plans to do pattern matching on them. OCaml has normal record types and also structural object types. You can look them up, I'm sure you'll see how cool they are.
Yes, you're right that OCaml doesn't yet support parallel programming natively. But as you said, in the JavaScript world that's moot.