I'm reasonably sure the answer is that the first is a runtime error and the second is not. I think the runtime error gets a name from syntax-local-infer-name, but perhaps it could/should also save the srcloc for the message.
On Wed, Mar 15, 2017 at 5:48 PM, Dan Liebgold <dan_liebg...@naughtydog.com> wrote: > Hi - > > Is there are a reason the error for referring to an identifier before it's > definition doesn't get location info, whereas in an otherwise identical case > the unbound identifier error does? > > e.g.: > > asdf: undefined; > cannot reference an identifier before its definition > in module: (submod "file.rkt" test) > > vs > > file.rkt:87:16: asdf: unbound identifier in module > in: asdf > > > Thanks, > Dan > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -=[ Jay McCarthy http://jeapostrophe.github.io ]=- -=[ Associate Professor PLT @ CS @ UMass Lowell ]=- -=[ Moses 1:33: And worlds without number have I created; ]=- -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.