Re: [racket-users] auto-defining variables mentioned in a program

2016-06-03 Thread Matthew Butterick
On Jun 2, 2016, at 11:47 AM, Jack Firth wrote: > - Have #%top somehow magically figure out if it should make a new box or > reuse an existing one for the identifier it's given. (call-with-future-miracle ...) I'll think about it more — but my hunch is this problem is

Re: [racket-users] auto-defining variables mentioned in a program

2016-06-02 Thread Matthew Butterick
On Jun 2, 2016, at 10:39 AM, Jack Firth wrote: > > I think you can do this by having your language provide it's own #%top syntax > that defines what to do with unknown variables. IIUC `#%top` can only provide fallback behavior at runtime, right? AFAICT it doesn't help