Back

Who else thinks PHP arrow functions should:

- Support multiline bodies with {} for more complex logic? 📜
- Or at least explicitly support void as a return type for clarity in no-return scenarios? 📷

#PHP #Laravel

4

263

  • No matching results...
  • Searching...

/ 1000

void seems fun, but not multiline, imo

33

This is what arrow functions should be like. The implementation that JS uses for arrow functions is great TBH.

16

I second the void return type, but not the multiline body: that's why closures exist.

123