JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.1k stars 59 forks source link

Old school classes are not supported #361

Open Nautigsam opened 2 years ago

Nautigsam commented 2 years ago

I see many examples using the class keyword but this is just an abstraction over prototype manipulation. I wrote an example using what I call an "old school class" : https://hegel.js.org/try#GYVwdgxgLglg9mABAcQE4FN1XagFGAQwFt0BKRAbwChFEoALGAZwDpCTEBeRd9KgXypU0mbKhYAHVHCgyAnhPQsA5hixdEoSLAS5y1WhARM4AGyWm4y3AAMAEulOXEAEgoNmbYun4BCG6QCQkZgTFCIyhpg6ADuKGpiuABEAOpwqKYAJkmByioJekA I looks like Hegel does not have the concept of function context and its prototype, which I believe is still very common in Javascript. Although, I find this project very interesting and I am eager to see it evolve.