this post was submitted on 21 Jun 2023
8 points (100.0% liked)
Go programming language discussion
1280 readers
1 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not easily while not avoiding the allocation hit of variadic arguments. But funny that, after all these years waiting on parametric polymorphism to be able to add a generalized
min
/max
, it ends up as a built-in anyway.