Hacker News new | past | comments | ask | show | jobs | submit login

I hardly see how Scala is more painful on the eyes than good old Java.



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]]
        )


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.


And I could cherry pick something just as hideous out of Java. Congrats.


Nobody disputed that but that's off topic. We're discussing the fact that Scala can be pretty ugly too.


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.


> I certainly do not.

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




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: