Very nice! Just the kind of use that comes up for me.

The one complexity I had when I did this for the standard sort was dealing
with the float32 and float64 types, where comparison was more complicated
and elaborate in the presence of NaN values. Still, this kind of
compile-time type templating is the only kind of generic that i ever need.

On Sat, Mar 11, 2017 at 6:37 AM, Сергей Камардин <gob...@gmail.com> wrote:

> Hi! You also could use C preprocessor to make such things. I have used it
> to generate some generics algorithms to increase performance and reduce
> interfaces overhead. It is not the best approach, but it could be useful
> and powerful.
>
> FYI: https://github.com/gobwas/ppgo
>
> --
> 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.
>



-- 
Michael T. Jones
michael.jo...@gmail.com

-- 
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.

Reply via email to