News for hackers. Stuff that matters.
Re:On F# code readability by thomasz on Monday March 04, 2013 @02:38PM (#5320291)
I'm totally fine mandating explicit declarations for mutual dependencies, I'm just pissed that F# has no syntax for dependent modules.

It's just odd. Why can I declare co-dependent functions and types, but not modules?

Re:On F# code readability by snprbob86 on Tuesday March 05, 2013 @12:11PM (#5325712)
If they are co-dependent, then that, by definition, means that they are not independent. What value do you get by having co-dependent modules that you can't get by having a single module? If you want two public APIs with one common implementation that is co-dependent, you can have three modules where two depend on the co-dependent part. Without seeing a motivating use-case, I'm just going to assume that F# is succeeding in preventing you from making a bad design decision.