DEV Community

Discussion on: PHP needs its own ES6

craftist profile image

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

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