2 ms·
doSomethingElse( doSomething( object, a, b, c), a, b, c) Not that bad is it? I think I like it better actually, especially if a b and
by galangalalgol 4y ago
doSomethingElse(
doSomething(
object,
a,
b,
c),
a,
b,
c)
Not that bad is it? I think I like it better actually, especially if a b and c had variable names that were longer
- RivieraKid 4y agoIt's a lot less readable to me. The dot version exactly matches my thinking - take this object and transform it with parameters a, b, c and then transform the result again. When you have an object that you apply a series of transformations to, it's natural to describe the process in chronological order.