Re:C’s Biggest Mistake (2009)
by knaq on Sunday September 13, 2020 @06:46AM
(#24459960)
Yes, but is that happening? I think the answer is no. The mere ability to pass huge structures does not cause programmers to do that.
I believe the same would be true if the language allowed passing arrays. Programmers would not generally pass them around. There is no need for the language to protect us from this by failing to implement the ability to pass arrays.
Re:C’s Biggest Mistake (2009)
by saagarjha on Sunday September 13, 2020 @06:56AM
(#24459996)
I think I agree with that position. I seem to have gotten the impression that you were doing this and not seeing a performance impact, which has been wrong in my experience.
I believe the same would be true if the language allowed passing arrays. Programmers would not generally pass them around. There is no need for the language to protect us from this by failing to implement the ability to pass arrays.