Re:Clever code is probably the worst code you could write
by constantcrying on Wednesday May 22, 2024 @11:24AM
(#40442134)
That is just a question of what you are used to. The "functional style" example is very obvious to a person who is familiar with that style. In fact if the rest of the code base is in a similar style it is the easier one to understand.
There is nothing inherent which makes either better or cleverer than the other.
(Also the first one is incomplete, as "n" is not defined, making the later more self contained)
There is nothing inherent which makes either better or cleverer than the other.
(Also the first one is incomplete, as "n" is not defined, making the later more self contained)