In the official documentation, there’s a paragraph describing ReScript.
Can anyone tell me where “dynamic object dispatch” is explained?
Is that a kind of runtime polymorphism in Java/C++?
Yes, it’s an OO concept. Classes can inherit from a parent and override methods, and the type system allows instances of the child class to be stored in variables that are the parent type. Thus, calling the method on an object of the parent type might either execute the parent implementation or a child implementation.
Sorry, I’m a JS dev, and since I was not familiar with the term and with the given context (I was reading about reason react) my mind just used the most familiar thing . But that’s why I am a dev, because I love to keep learning