Suneet Agrawal
1 min readJan 10, 2020

--

@nelson.altares_8403 Like there are n number of ways to do one thing, Similar way, you can use data class or this way to do the same thing.

People like me prefer this thing because you don't need to define a separate class. It's similar to reusing an existing class for the same purpose. Pair and Triple are used for that only. Defining a new class just to pass data doesn’t make sense at all.

--

--

No responses yet