Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Fwd: metacomments and aspectj - need suggestion

> 2009/10/23 Ichthyostega <prg@xxxxxxxxxxxxxxx <mailto:prg@xxxxxxxxxxxxxxx>> 
> But I may be wrong, and thus I'm curious what could prevent you from building
> on a set of special annotations?

Sergey Staroletov schrieb:
> as I know, annotations is only for methods, isn't it?
...of course (and besides that, for classes and parameters too).
But that doesn't answer my question, just makes it more clear.

What prevents you from building the feature you're after on
method level, and thus use the facilities of the language
(including AspectJ, which is very good on working with
annotations btw)?

I'm asking, as said, because I'm puzzled about the use case, where
going down to single statement level with any cross-cutting mechanism
might be of benefit?

I could imagine performance measurements, but micro-optimising single
lines to my experience always created maintenance problems later on

I could imagine security or transactional behaviour, but would you
really rely on such a fragile construct as a comment is for such
mission critical concerns? The same argument holds for reasoning
about correctness, pre- and post conditions.


You see, probably you're looking after a use case which is quite
different of the common situations, and that's what makes me
curious... ;-)

Greetings,
Hermann V.




Back to the top