DEV Community

Discussion on: Don't return associative arrays!

Collapse
 
crease29 profile image
Kai Neuwerth • Edited

I'm an advocate of value objects by experience and totally support your post!
Another nice side effect is, that you will have a nice code suggest for the FileSenderReport, which you wouldn't have if you return an array.

Collapse
 
aleksikauppila profile image
Aleksi Kauppila

Thanks! Value objects FTW!