ceylon / ceylon.ast

Apache License 2.0
18 stars 3 forks source link

Interfaces #57

Closed lucaswerkmeister closed 10 years ago

lucaswerkmeister commented 10 years ago

I thought I’d open a dedicated issue for the question of how to represent interfaces, more specifically, the distinction between regular and dynamic ones.

  1. Boolean isDynamic? But nodes should normally be distinguished by their children only (with the obvious exception of literals and identifiers), Booleans are ugly.
  2. InterfaceModifier|DynamicModifier? But ‘interface’ isn’t a regular modifier, no more than ‘class’.
  3. Separate classes, own superclass AnyInterfaceDefinition? Lots of AnyX classes… but OTOH, you don’t have to see them.
  4. Separate classes, same superclass as InterfaceAlias (AnyInterface)? But regular and dynamic interfaces have lots of things in common, there’s no reason to put them on the same level as InterfaceAlias.
lucaswerkmeister commented 10 years ago

This has been hanging around for way too long. If no one complains, I’ll implement 3 this afternoon.