News for hackers. Stuff that matters.
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by dangerlibrary on Wednesday July 22, 2015 @02:18PM (#9931343)
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by incepted on Wednesday July 22, 2015 @02:27PM (#9931388)
He said he wanted something that's not painful on the eyes.
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by emergentcypher on Wednesday July 22, 2015 @04:44PM (#9932187)
I hardly see how Scala is more painful on the eyes than good old Java.
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by incepted on Wednesday July 22, 2015 @06:16PM (#9932739)
Random 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]]
        )
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by runT1ME on Thursday July 23, 2015 @03:39PM (#9937974)
Can 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.
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by emergentcypher on Thursday July 23, 2015 @12:04PM (#9936610)
And I could cherry pick something just as hideous out of Java. Congrats.
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by incepted on Thursday July 23, 2015 @12:58PM (#9936994)
Nobody disputed that but that's off topic. We're discussing the fact that Scala can be pretty ugly too.
Re:Show HN: Motif – Scala-like pattern matching with Java 8 by dangerlibrary on Thursday July 23, 2015 @01:08AM (#9934088)
Hi! 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.

Re:Show HN: Motif – Scala-like pattern matching with Java 8 by incepted on Thursday July 23, 2015 @01:34AM (#9934156)
> I certainly do not.

What a coincidence, I do not care about your opinion either!

Re:Show HN: Motif – Scala-like pattern matching with Java 8 by rugmug5 on Wednesday July 22, 2015 @05:00PM (#9932272)
Hence Scala...