Decorator

Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.

Examples in Zig
No examples yet.
You can see if there are examples in other languages or
be the first to post an example in Zig!