anole-lang / anole

The Anole Programming Language
MIT License
17 stars 1 forks source link

[PROPOSAL] A Proposal of OOP Support #21

Closed mu001999 closed 3 years ago

mu001999 commented 3 years ago

Different from PROPOSAL#20, this proposal considers class-declarations as not objects.

For example, we can only declare a class as following with the temporary grammar like other languages:

class Student {
    ...
};

This makes sure that all classes are determinate. But for Anole, this may be not enough flexible.

mu001999 commented 3 years ago

This is a normal way, so we choose to abandon it.