sergiotaborda / lense-lang

The Lense Language Compiler
1 stars 0 forks source link

Research Mirror API adoption vs features like Type classes and typeOf #99

Open sergiotaborda opened 1 year ago

sergiotaborda commented 1 year ago

Remove the getType() method from the Any contract and adopt a Mirror API. This way the api can be implemented for each platform independently.

Instead of


stringClass : Type = "Hello".getType()

would be


stringClass : Type = Reflection.mirror( "Hello");