Re:Learning the oldest programming language (2024)
by thatjoeoverthr on Thursday December 18, 2025 @05:27AM
(#46310981)
True! I just wanted to highlight it. (I had to do this at an interface because the ABI doesn’t pass the shape.)
You can do that, and it might be cleaner and less lines of code that way.
But you don't necessarily need to pass the array dimensions as a parameter, as you can call `size` or `shape` to query it inside your function.