4 ms·
The Cambrian explosion of java 8 functional libraries like this is fun to watch. Others I've come across: - http://javaslang.com/ http://javaslang.com/ - http
by qqueue 11y ago
The Cambrian explosion of java 8 functional libraries like this is fun to watch. Others I've come across:
- http://javaslang.com/ http://javaslang.com/
- https://github.com/aol/cyclops https://github.com/aol/cyclops
- http://totallylazy.com/ http://totallylazy.com/
- https://github.com/poetix/octarine https://github.com/poetix/octarine
- (good ol') http://www.functionaljava.org/ http://www.functionaljava.org/
The syntax for these libraries is always a little wonky though. If only these libraries also had some sort of syntax preprocessor to make it more palatable. You could call it, I don't know, Scala, or something.
- bwanab 11y agoExactly. I want to like these things, but they're just way to painful on the eyes.
- dangerlibrary 11y agowhoosh? http://www.scala-lang.org/ http://www.scala-lang.org/
- incepted 11y agoHe said he wanted something that's not painful on the eyes.
- emergentcypher 11y agoI hardly see how Scala is more painful on the eyes than good old Java.
- incepted 11y agoRandom example from a popular project: def bimap[C, X[_, _], D](g: Bijection[C, D])(implicit F: Bifunctor[X], evF: F[B] =:= Id[B], evG: G[A] =:= Id[A]): Bijection[X[A, C], X[B, D]] = bijection( F.bimap(_)(to(_), g.to(_)): Id[X[B, D]] , F.bimap(_)(from(_), g.from(_)): Id[X[A, C]] )
- dangerlibrary 11y agoHi! I see that you are new to Hacker News. Welcome. It's unlikely that anyone cares about your opinion re: Scala's syntax and cherry-picked abuses thereof. I certainly do not. My comment was an attempt to point out the sarcasm in the root comment. Have a nice day.
- incepted 11y ago> I certainly do not. What a coincidence, I do not care about your opinion either!
- emergentcypher 11y agoAnd I could cherry pick something just as hideous out of Java. Congrats.
- incepted 11y agoNobody disputed that but that's off topic. We're discussing the fact that Scala can be pretty ugly too.
- runT1ME 11y agoCan you show me the equivalent java code? I would guess it's 200 lines of java or more. I would much rather spend the time to learn what that's doing than reading 200 lines of java.
- rugmug5 11y agoHence Scala...