On Saturday, June 13, 2020 at 10:55:43 AM UTC-4, Jan Mercl wrote: > > On Sat, Jun 13, 2020 at 4:42 PM Tom Limoncelli <t...@whatexit.org > <javascript:>> wrote: > > I'd suggest to just write the short 'end' function by yourself if you > think it's useful for you. It does not harm performance as it will get > inlined AFAICT. > > You cant really write a short 'end()' function. You have to write an end function for every type of slice. Or use reflection, which would make the function slow, and not inlined. Generics anyone?
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8129986c-1d95-44f8-bde9-474be4ff326do%40googlegroups.com.