@wim_v12e sorry, i reworded the toot!
I can do some "message passing" thing like the explained in the SICP but that's literally doing OOP.
Are there any idioms for this?
I have a list of elements that all of them have the same interface let's say and I have to call functions on them, but each of them have their own implementation.
The message passing way solves this fine, but it's not really clean.
What do you propose? some kind of pattern matching on the function that captures the type?