Live data from Hacker News

PureScript 0.13 Release

github.com

11–20 of 39 posts

Re: PureScript 0.13 Release

#11
post #6
post #4

Earlier quoted context omitted.

Generally developers tend to either (1) misunderstand them when they encounter them in the wild or (2) accidentally invoke them. (I believe multiple languages have had issues with '04' being treated as an octal, which works fine and doesn't trigger developer notice until they encounter '09' in the wild). Whether these are VALID concerns I won't take a stance on - just saying these are the reasons I've seen cited.

Why not use 0x,0b, and 0o for hex, binary, and octal literals? I never liked the fact that a number starting with 0 was treated as octal.

OCaml does just that; it might have been the first language to have 0b and 0o prefixes for binary and octal literals.

https://discuss.ocaml.org/t/the-origin-of-the-0b-01-notation...

Re: PureScript 0.13 Release

#12
If PureScript is Haskell, TypeScript is ML

Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users

https://www.typescriptlang.org/docs/handbook/advanced-types....

Re: PureScript 0.13 Release

#13

Are there other languages that make an opinion on tabs/spaces? This seems nice. > The only whitespace now allowed in code is ASCII space and line endings. Since you must use indentation to format PureScript code (unlike Haskell), we felt it was best to be more restrictive in what you can write instead of allowing potentially confusing behavior (implicit tab-width, zero-width spaces, etc). You can still use unicode wh…

F# doesn't allow tabs unless you use a compiler directive

Re: PureScript 0.13 Release

#14

If PureScript is Haskell, TypeScript is ML Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users https://www.typescriptlang.org/docs/handbook/advanced-types....

> If PureScript is Haskell, TypeScript is ML

If you want ML, why not OCaml with js_of_ocaml or BuckleScript?

Re: PureScript 0.13 Release

#15
post #8

What happened to the original author of PS? https://github.com/purescript/purescript/graphs/contributors

Like many of us, he had children and couldn't keep up with the workload, so he took a step back. Fortunately there is a very active community working on PureScript!

Re: PureScript 0.13 Release

#16
post #2

I noticed a few languages removing support for octal and binary literals. I wonder why. I find them useful and the parser overhead seems minimal to keep them around.

We found no usages of it in the wild. If there is real-world need for them, we'll consider adding them back.

Re: PureScript 0.13 Release

#17

If PureScript is Haskell, TypeScript is ML Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users https://www.typescriptlang.org/docs/handbook/advanced-types....

Once you get a taste for higher kinded types (aka: type constructors), there is no going back! PureScript is fantastic language with an active an open community. Best place to start (IMHO) is https://github.com/lumihq/purescript-react-basic You can pretty quickly get a react app up and running

Re: PureScript 0.13 Release

#19

Are there other languages that make an opinion on tabs/spaces? This seems nice. > The only whitespace now allowed in code is ASCII space and line endings. Since you must use indentation to format PureScript code (unlike Haskell), we felt it was best to be more restrictive in what you can write instead of allowing potentially confusing behavior (implicit tab-width, zero-width spaces, etc). You can still use unicode wh…

I think Elm have similar rules, the official code format tool is very opinionated.

I can attest to that, elm-format is an excellent tool and it is great to have a standard code formatter, one less thing to worry or argue over when writing code!

Re: PureScript 0.13 Release

#20

If PureScript is Haskell, TypeScript is ML Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users https://www.typescriptlang.org/docs/handbook/advanced-types....

I think that's a decent analogy, to an extent. Of course there's always Reason, which is actually ML.

https://reasonml.github.io

Post reply on HN