Hi, Racket Discourse.
As I explained in last month’s post, this topic is for anyone to share some interesting libraries or packages that they think others would find useful, or might not have heard of before, without necessarily having to do a show & tell.
This month, I’d like to highlight two:
- struct-define, and by association
- racket-ollama.
When I just started experimenting with some ideas for harnesses, I naturally reached for a Racket-based system with which to work.
Reading @bogdan’s code was really enlightening and I learned quite a bit. One of the things I learned was using struct-define, which allows you to do something similar to match-define, although it exposes macros which expand into accessors over a particular struct instance, whereas the latter exposes values directly. It also integrates with set! for mutable fields.
The package is due to @jeapostrophe, if my prose is confusing.
Mooiloop!