DEV Community

loading...

Discussion on: Don't return associative arrays!

Collapse
aleksikauppila profile image
Aleksi Kauppila Author

But wouldn't that make client code as tightly coupled to implementation of sendFiles() as using an array?

Collapse
sergeytelpuk profile image
Sergey

Sometimes minimum abstraction is enough but if you want to expand your logic of course it's better use an interfaced approach.

Forem Open with the Forem app