Overloaded functions in modules
Since curried functions cannot 开发者_开发问答be overloaded and modules cannot have members, does this mean there is no way to have an overloaded function in a module? The answer seems obvious, but I want to make sure there's not something I'm overlooking.
Correct, no overloaded functions in modules (more generally, no way to overload a let-bound function). If you say f, then f always has a single type, whereas if you say o.f, that may refer to a group of overloads (resolved by surrounding context).
加载中,请稍侯......
精彩评论