News for hackers. Stuff that matters.
Re:Dart language by phillmv on Monday October 10, 2011 @04:51PM (#3095786)
>but you cannot make it one

Why not? It makes no difference whatsoever. Make it so that the only constructor in the system is Object.new(), and so everything else that inherits behaves just like a method.

>Without it: in var foo = Bar(), is Bar a type or a function?

That's easy. Make it so that only classes and consts can be capitalized.

Blammo!

There are no comments on this comment yet.