Closed facontidavide closed 2 years ago
I can send a PR, if you think it is a valid idea
If we replace std::make_tuple(a, b, c, d)
with ConnectionId{a, b, c, d}
it wouldn't make a big diffence.
On the other hand, when we read the properties, instead of get<2>(connectionId)
we'd get connectionId.inNodeId
which looks much better.
I agree with you, let's stick with
struct ConnectionId
{
NodeId outNodeId;
PortIndex outPortIndex;
NodeId inNodeId;
PortIndex inPortIndex;
};
I will submit a PR tomorrow
Hi,
just an opinion. Using tuples make reading the code more verbose and less readable.
I would like to suggest this change:
or maybe something like:
From the point of view of the compiler, there is no difference, but the resulting code is more readable.
What do you think?