That got me confused as well, when I saw the platform static discussion. At first sight, I thought they were method calls as well. But I guess in the IDE you have better syntax highlighting than here in the forum. I don't like the idea that there are annotations with square brackets and others without them. On the other hand I do see the value of data class over [data] class, especially as square brackets can't be typed comfortably on a German keyboard.
I worked quite a lot with Groovy compiler transformations on a project. Are there any plans to provide something like that for Kotlin as well? If there are: being able to create annotations that feel as much as possible like syntax would be a desirable goal (thus, annotations without brackets whereever possible). If there aren’t, I wouldn’t even care if data was an annotation or just part of the syntax (thus, all annotations should have brackets for consisency reasons and data probably shouldn’t be an annotation).
Just to be curious: why is it so much more difficult to parse annotations without square brackets for local classes than in other contexts?