On Tue, 18 Aug 2020 at 08:49, Aleksander Machniak <a...@alec.pl> wrote:
> > I wonder why my suggestion (somewhere in this thread) didn't get any > attention. Is it because the ship had sailed or it's a terrible idea? > > declare( > SomeAttr, > AnotherAttr("Hello world") > ) > function someFunc() { > } > This syntax has its benefits, but IMHO looks a bit clumsy for simple annotations, and does not make it stand out as an annotation to my eyes: declare(Inject) class Foo { } But this may be just me. — Benjamin