> If you want your tests to catch exceptions you need to wrap them in
> exception handlers, which you could write a macro to do for you; as Eric
> noted though you need to be careful to preserve source locations.
This gave me an idea, so I've been reading *rackunit* docs finally. I'm
Thanks Paulo, I like seeing these additional resources regarding Racket and
computer science, as I'm at an intermediate level on both.
On Monday, April 1, 2019 at 4:05:27 PM UTC-5, Paulo Matos wrote:
> Issue 5 is here.
> Come on
While reading *rackunit* source I stumbled on a pattern that I can't figure
out. Why the heck does it work? Condensed to its essence it amounts to
introducing indirection with a macro-generated define:
> (require (for-syntax syntax/parse)
Racket's macros are hygienic. They'll gensym for you.
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
> Are you using emacs racket-mode? I have experience this issue only in that
> mode since it does not (to my knowledge) implement all the error anchoring
> features of DrRacket.
It might just be that you have DrRacket set to user a higher
errortrace level than racket-mode?
That is, in DrR,
I know in principle but on occasion I fail to understand the implications.
Let me think aloud. I don't have to be perfectly accurate, maybe just about
right. Hygiene here means that every symbol there e.g. arguments my macro
receives carry their "environment" with them. There exists some
If I understand correctly, the fourth paragraph here is relevant?
So, `foo-impl` is a binding introduced by the macro and gets that
macro invocation's fresh macro-introduction scope.
Whereas for example
Thanks, John. Actually, when you distinguished between the line breaks and
the indentation, that helped me come up with the following algorithm. It
basically, 1) lets pretty-print do its thing (inserting more line breaks
than I need), 2) uses a regex to scrub out all line breaks after a
I’m glad to hear it! I think that it may not fail in nice ways for deeply
nested s-expressions, but that not be an issue for you. I do think that there
should be a nicer way than using a text%.
> On Apr 4, 2019, at 11:14 AM, Stephen Foster wrote:
> Thanks, John. Actually, when you
Mail list logo