4 ms·
In angular2 they are for example used for dependency injection, which works really well. Other use cases that I see are for example automatically generating [d
by Matthias247 9y ago
In angular2 they are for example used for dependency injection, which works really well.
Other use cases that I see are for example automatically generating [de]serialization code for members based on decorators and their values (like how Annotations are used in C# and Java serialization frameworks or tags in Go).
There are also web frameworks popping up which use decorators for routing and parameter binding in a similar fashion how some Java frameworks work.
- abritinthebay 9y agoSo syntax to his bad application design & code patterns behind? That’s an argument against them surely?