Hi Racketeers,
I prototyped a language and a DrRacket plugin that allow you to find a corresponding expression in the definition window from the interaction window. See the following GIF for the demo:
(FWIW: this feature was a wishlist in Pyret. They ended up implementing the spy statement instead, but IMO it serves a different, orthogonal purpose).
The prototype is finished and can be found here. Any feedback would be appreciated. In particular, I have the following question:
#%module-begin
. I’d love to be proven wrong though.write-special
the icon which defines a special method and make the DrRacket plugin spams sending this special method message to every snip whenever the interaction window changes (which could either result in a method invocation or a method not found error —- which will be caught and ignored). Surely there is a better way. I thought of using is-a?
to check if a snip is the object I’m looking for, but the test always returns negative (presumably because the object is constructed in user space but the check is done in DrRacket space?)current-command-line-arguments
). Neither is feasible for my use case.By the way, here are known bugs / changes I intend to make in the future:
#lang <meta-lang-name> typed/racket
.Thanks!
Sorawee (Oak)
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CADcuegtHusXDP55EmNVT1xkX3Rmi-z%3DOCVR4-%3DQ2VSWQaophNg%40mail.gmail.com.
Technical question for Robby: How should we represent the icon?
Just a bitmap% object?
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/6e1d2180-288d-4789-88fc-2980aaf03650o%40googlegroups.com.