Hacker News new | past | comments | ask | show | jobs | submit | more thoradam's comments login

ReasonML isn't pure FP.


Purity is not an end unto itself.


Immutability and purity by default goes a long way to remove a lot of headaches. I could settle for immutability, but it seems ReasonML mixes things a bit.


> You might later find that something that took you 5 lines is a standard abstraction ready to be re-used.

Such a great point and perhaps one of the biggest challenges as languages allow increasingly reusable and powerful abstractions. I would love to have GHC tell me something like "this piece of code here has a signature that is familiar, you could probably make this fit into {list of abstractions}".


If you're interested in a tool like that, check out Hoogle: https://www.haskell.org/hoogle/. It allows you to search by signature, including using generic types (e.g. their front page example is (a -> b) -> [a] -> [b], which will return map as a result, among others).


That doesn't seem like something a compiler should care about, I think it would be better to add it to something like hlint.


Djinn: https://hackage.haskell.org/package/djinn

Does more or less what you described.


Such a tool exists. I've had hlint tell me many times how to do something in a better way. At some point I had it hooked into my IDE, so it would mark improvable code in yellow.

Especially in the first year I learned a lot of new Haskell syntax and functions just from its suggestions.


If you don't mind me asking, which IDE do you use?


Oh, yeah, I should have mentioned that: IntelliJ IDEA with the Haskforce plugin. The plugin isn't maintained any longer, though, so it's not the best solution, but it was perfect when both ghc-mod and hlint worked. ghc-mod still works, because I can't go back to coding without it, speeds everything up so much to have instant compiler feedback.

For example, there is this fatal, unresolved bug that no one knows how to fix: https://github.com/carymrobbins/intellij-haskforce/issues/28...

EDIT: It's working again (for projects that do not exhibit above bug): http://i.imgur.com/jPo4Tas.png


Intero is amazing for this.


This is one of the best qualities of languages like Haskell, the type system promotes discovery and true reuse of code. There has even been research into specifying dependencies as 'something that implements this signature' rather than specific packages.


Yeah haskell is amazing. I'm still really looking forward to the day when somebody writes something actually useful in haskell. (Oh but pandoc, xmonad, shellcheck... in how many years?) ;-)


This really isn't that complicated, he had views that the community was overwhelmingly against, hence he was not qualified to serve as CEO. The community did not fire him.

Also, there's a fundamental difference between the two views you juxtaposed. One suppresses the freedom of others, while the other promotes it. You can't really be intolerant by being against intolerance.


> You can't really be intolerant by being against intolerance.

I'm pretty sure religious people can be intolerant of gay people who are intolerant of religious people.

-or-

Gay people can be intolerant of religious people who are intolerant of gay marriage.

I, for one, have no tolerance for all this intolerance.


They mention annotations, presumably type annotations? Is that actually a part of ES6? I can't find any mention of it.


Which reminds me, wasn't ECMAScript 6 supposed to be finalised in December[1]?

1: http://en.wikipedia.org/wiki/ECMAScript#ECMAScript_Harmony_....


The target date for ES6 has slipped to December 2014:

https://github.com/rwaldron/tc39-notes/blob/48c5d285bf8bf0c4...


I don't recall any other incident. By the way the only armed police force in Iceland are the special forces. Regular police officers and agents are not armed.


If you select JavaScript as the regex implementation it seems to do the work client-side.


I can't tell if mine is also sad or just sporting a killer moustache https://identicons.github.com/thoradam.png


I'd call it somewhere between sad and pissed off. Not an identicon you want to fuck around with, at any rate.


Reminds me of a Creeper.


Could you please define "highly processed foods"?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: