Hacker News new | ask | show | jobs
by dunefox 1704 days ago
That version is extremely noisy, imo.
2 comments

I once had to add logging to a large set of methods in C#, so I thought, well, let's make a function decorator like Python or Haskell, there's no reason it wouldn't work on C#.

Well, it indeed worked perfectly well. But the amount of noise added to satisfy the type checker was larger than reimplementing the log procedure at each place.

The version in Java? Yes, because it's Java.