On Sun, Jul 9, 2017 at 2:05 PM, 'Anmol Sethi' via golang-nuts <golang-nuts@googlegroups.com> wrote: > I haven’t seen this API design used anywhere at all in any library I have > ever used (or in the standard library at all) so I was wondering whether or > not it’s idiomatic.
It's used heavily in the golang.org/x/text subrepos, for what it's worth. For example, see the cases or precis packages: - https://godoc.org/golang.org/x/text/cases - https://godoc.org/golang.org/x/text/secure/precis I personally like it a lot, especially if I think I might want to add more options later. Dave's talk you linked goes over why you might want to use it (or not) very well, so I won't rehash that, but it is used in the wild. —Sam -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.