DEV Community

Discussion on: PHP needs its own ES6

Collapse
craftist profile image
Craftist

the arrow operator looks really redundant. the closure'd be better "=>" (since "=>" is only used inside array key-value pairs and foreach)

Collapse
hamatti profile image
Juha-Matti Santala Author

Yeah, the thin arrow function is just something I threw in there when writing. I don't mind writing full function declarations, the main point was to get rid of the array_ functions