There are a few ways.

procedure-rename works at runtime

Or you can influence the inferred value name ---
http://docs.racket-lang.org/reference/syntax-model.html?q=procedure-rename#%28part._infernames%29
--- by setting the syntax property or expanding to something like

(let ([name-i-want (lambda args body)]) name-i-want)

Jay


On Wed, Mar 8, 2017 at 2:11 PM, Dan Liebgold
<dan_liebg...@naughtydog.com> wrote:
> On Wednesday, March 8, 2017 at 10:56:48 AM UTC-8, Jay McCarthy wrote:
>> You want to use syntax/loc. The error message comes from the lambda,
>> not from the keyword argument. It could be possible to change where
>>
>
> Yup, that fixes it. Thanks!   I experimented with syntax/loc in various 
> places, but didn't try that spot.
>
> Now, for a bonus, is there a way to assign a name to the lambda that the 
> error message will use?  Right now it just shows the file and line number...
>
>> --
>> -=[     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.



-- 
-=[     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.

Reply via email to