
best way to test a r5rs file with rackunit in another file? I found a workaround which is using #lang racket/load
and then (load "my-scheme-file.scm")
, but is there any other way?
Edit: My instincts say no, because of immutable top level…
Edit2: Nevermind, I just checked where I originally read to use racket/load
, and it literally spells what my options are https://docs.racket-lang.org/guide/load.html\|Link

I am curious about the following construct.
In the gui-lib the button%
class for macOS is defined as (define button%
(class core-button% (super-new)))
and core-button%
is defined as (defclass core-button% item%
(init parent cb label x y w h style font
[button-type #f])
(init-field [event-type 'button])
(inherit get-cocoa get-cocoa-window init-font
register-as-child get-wx-window)
...)
which in turns uses RacketButton: (define-objc-class RacketButton NSButton
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb]
(-a _void (clicked: [_id sender])
(queue-window*-event wxb (lambda (wx) (send wx clicked)))))
I am wondering why button%
is needed. Why not not remove that definition and rename core-button%
to button%
?

It’s so (is-a? button% x)
won’t produce #t
if x
is an instance of check-box%
(which is also a subclass of core-button%
.

Thanks - after reading check-box.rkt
it makes sense.

Hello,
I was wondering how you could make two systems written in different languages and connecting them together. I’d like to build a system S in Common Lisp or Racket and a system T In Python. The Python system will output something and I want to to then feed this output to the lisp system. how do you this? Thanks

Probably sockets. That way they could be on the same or different computers. Maybe start with https://docs.racket-lang.org/teachpack/2htdpuniverse.html#%28part._universe._world2%29\|https://docs.racket-lang.org/teachpack/2htdpuniverse.html#%28part._universe._world2%29

Maybe this is of interest as it has multiple languages https://rosettacode.org/wiki/Chat_server#Racket\|https://rosettacode.org/wiki/Chat_server#Racket

Also files or Unix pipes. Depends on the type of system: interactive? Long or short running? Etc

Either way, S expressions make a good serialization format