Hacker News new | ask | show | jobs
by lalaithion 2556 days ago
I write very annotation/static method heavy Java at work, and I write Haskell for fun at home, and my kneejerk reaction to seeing this code in the "Why are static methods bad" link:

    void transform(File in, File out) {
      Collection<String> src = new Trimmed(
        new FileLines(new UnicodeFile(in))
      );
      Collection<String> dest = new FileLines(
        new UnicodeFile(out)
      );
      dest.addAll(src);
    }
was "That looks just like Haskell".
1 comments

and from that link

> public class Max implements Number

uhm