-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type safe messaging? #161
Comments
The reason that However, having a way to define methods that are type-safe, leverage IDE auto-completion, and provide proper documentation about arguments is highly preferable. For example, the means of delivering mouse events in UI objects and also the way notifications pass arguments are both currently suffering from some amount of trying to make every-differently-shaped-peg fit into a round hole. |
I had a similar thought while poking around in the min-lib a while ago and decided to write a small proof-of-concept library myself. It uses some scary preprocessor constructs and even more scary cxx17 template magic like compile time type introspection and If don't think the approach is one that is realistic for the min-lib but if you find it interesting anyways please have a look at the library and some examples. |
I'm wondering if it might make sense to somehow make some of the messaging more type safe.
For instance, the
dspsetup
anddspstate
messages could be virtual methods for the vector and sample dsp classes. These methods would have the actual signature of the args they expect instead of an atom list.The text was updated successfully, but these errors were encountered: