Open mna opened 10 years ago
Maybe: make func statements (i.e. func SomeName() {}
) accessible even before declaration, but func expressions (i.e. SomeName := func() {}
) accessible only from the point of declaration forward. That's pretty much how it works in Go (well, func expressions cannot be used in top-level, and func statements cannot be used within a func, so the comparison is not accurate).
Remove this constraint in future versions, especially since it is impossible to use a pair of mutually depended upon functions at the moment.