| ▲ | jstanley 3 hours ago | ||||||||||||||||||||||||||||||||||||||||
It makes intuitive sense. How else could you write a 500-line script top-to-bottom with no backspace key and no arrow keys and get all the imports etc. right upfront? | |||||||||||||||||||||||||||||||||||||||||
| ▲ | wren6991 3 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
...by inferring both the imports and the script body from the same context? I think you're suggesting there's some kind of information flow from the anticipated body of the script back up to the imports, but I don't see why that would be necessary. Infer imports from context, infer body from context + imports. All strictly causal. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||