Hi
Am 2024-10-29 21:12, schrieb Valentin Udaltsov:
Will the first class callable syntax be supported?
```
#[Serialize\Custom(strtoupper(...))]
```
It is currently listed in the “Future Scope” section. Mainly, because
the implementation does not *trivially* extend to first-class callables.
When you have a regular Closure, everything you need to know is right
inside the file. For first-class callables the target function might
reside in a different file and already needs to be available. For static
methods, the autoloader might need to be called. So first-class
callables behave similarly to new-expressions, whereas Closures behave
more like string literals or number literals.
Best regards
Tim Düsterhus