Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Functions must be declared before use #8

Open
mna opened this issue Sep 14, 2013 · 1 comment
Open

Functions must be declared before use #8

mna opened this issue Sep 14, 2013 · 1 comment
Milestone

Comments

@mna
Copy link
Owner

mna commented Sep 14, 2013

Remove this constraint in future versions, especially since it is impossible to use a pair of mutually depended upon functions at the moment.

@mna
Copy link
Owner Author

mna commented Oct 3, 2013

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant