``` A: fun foo(parentId: Long, itemId: Long) B: f...
# getting-started
u
Copy code
A: fun foo(parentId: Long, itemId: Long) 
B: fun foo(itemId: Long, parentId: Long)
m
how does the order matter? But I would personally prefer writing most valued param as first param, most valued can be derived from domain logic
u
it doesnt, its just style .. what do you mean by
most valued can be derived from domain logic
?
d
My personal preference is to have the parameter higher in hierarchy comes first. Taking from your example, it would be parentId followed by itemId.
m
I agree with @deactivateduser