sigmundch / DEP-member-interceptors

little experiment of using barriers to implement observability
4 stars 4 forks source link

More rationale for using annotation syntax #8

Closed munificent closed 9 years ago

munificent commented 9 years ago

To me, the biggest reason to use annotation syntax for interceptors is that it lets a library encapsulate the usage of interception. My awesome framework may use @foo as a regular annotation in 1.2.3 and then switch to making @foo an interceptor in 1.3.0 without breaking my users or even requiring them to know.

sigmundch commented 9 years ago

good point, I added this to the proposal document too.