HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Interfaces #116

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Interfaces - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/types-interfaces.html

DalekCraft2 commented 2 years ago

I'm confused as to why the trivia at the bottom says that they were adhering to Java's standard by removing the comma between the implements statements; Java does use the comma between them.

ovidiugabriel commented 5 months ago

@DalekCraft2 my understanding is that Java uses implements Interface1, Interface2, Interface2 and not

implements Interface1, implements Interface2, implements Interface3

The trivia says it required implements keywords to be separated by comma. To be honest I don't know why the comparison with Java. I never saw implements keyword used multiple times for the same class definition.