News for hackers. Stuff that matters.
Re:Better Java – Resources for Writing Modern Java by kilink on Saturday September 19, 2015 @07:31PM (#10245932)
I'm also not a fan of passing Optionals into methods. Most of the time it's easier and cleaner just to write an additional method without that optional parameter.
Re:Better Java – Resources for Writing Modern Java by Peaker on Sunday September 20, 2015 @02:45AM (#10246768)
It can grow cartesian though.

I think the best compromise is to declare a new data type for the argument, such as:

  data ExecutionDirectory = ExecuteInCWD | ExecuteInDir FilePath
And take an ExecutionDirectory instead of a `Maybe FilePath`.

Of course, you need light-weight data declarations for that.