Hi Kasper,
perhaps not what you are asking, but I find that this kind of nesting
happens to me when parsing serialized data (web page sources or JSON as in
your example). For me, the root cause of the problem is that these data
structures are not represented by real classes in my code. I often sta
All the answers have been good. I am somewhat provoked (in the good sense of
forcing me to think) by Siemen who sort of think of it as a code-smell.
Best,
Kasper
> On 26 Feb 2022, at 17.14, Siemen Baader wrote:
>
> Hi Kasper,
>
> perhaps not what you are asking, but I find that this kind of
I was bemused to realise that I've actually been programming
for literally 50 years. It finally seeped through my thick
skull I make enough mistakes that if it's hard to read, I
probably got it wrong. And THIS code fragment is hard to
read. I don't care if you use parentheses or pipes, it's
hard