Overloading a struct constructor
问题 Is there a way to overload the constructor for a struct in Racket, so I can make the inherited parameters optional ? In my case, I want to define some custom exceptions for my app. For example : (struct exn:my-app exn ()) (struct exn:my-app:illegal-access exn:my-app ()) However, to instantiate an illegal-access exception, I have to call the constructor with the 2 arguments inherited from exn (message and continuation-marks), which is quite cumbersome. Is it possible to define (for exn:my-app