Begginer: Extension methods?

Given that Rescript type system is nominal, adding support for extension methods can be use useful, specially if extension methods names can be math like ‘operators’ like (+ , +=, etc)

It’s worth mentioning that javascript has a tc39 extension methods proposal despite not having a type system

Actually realized there is an idiomatic equivalent

myVar -> extension
2 Likes