@jamesmunns.comJames Munns @jamesmunns.com
2026-11-22 14:26 UTC
Yeah, it also has a nice property that `[..len()-1]` returns a slice with len 1, and `[..len()]` returns a slice with len 0. And `[len()]` can't work, because it's already past the end. It all makes sense in context, but my first gut reaction seeing it in some code was "wut".
A reply in a thread.
4 likes, 0 reposts, 1 replies
3 Next post4 More from @jamesmunns.comBackBluesky home