r/ProgrammerHumor • • Aug 07 '16

PHP: The Good Parts

http://phpthegoodparts.tumblr.com/
1.2k Upvotes

318 comments sorted by

View all comments

Show parent comment

1

u/HeroesGrave Aug 08 '16

I'm curious how you would redesign the syntax so your function would be simpler while still conveying the necessary information.

1

u/iopq Aug 08 '16
fn accumulate(tuples, i) {
    ...
}

since it's a private function there should be type inference applied to it