▲ | terminalbraid 4 days ago | |||||||||||||||||||||||||||||||||||||
If you're fine with that then you should be upset by the subsequent example, because by your own definition "that's just not the way slices work". | ||||||||||||||||||||||||||||||||||||||
▲ | 813ac4312b25c 4 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||
I am fine with the subsequent example, too. If you read up about slices, then that's how they are defined and how they work. I am not judging, I am just using the language as it is presented to me. For anyone interested, this article explains the fundamentals very well, imo: https://go.dev/blog/slices-intro | ||||||||||||||||||||||||||||||||||||||
|