3 ms·
The proposal stated: > Every function clause must be together. It is an error to put another item between two function clauses. So, it would not. Then again,
by steveklabnik 7y ago
The proposal stated:
> Every function clause must be together. It is an error to put another item between two function clauses.
So, it would not. Then again, the proposal wasn't accepted so it's kind of a moot point. But you're totally right that without this it would be very tricky. Given that match arms have an ordering, I'm not sure you could come up with a semantic where it would work across compilation units.