I disagree that generics would decrease readability at the call site.
Perhaps within the library where it is used but maybe not even there. The
only complexity is within the compiler and other internals. This is not
irrelevant by far but the carte blanche "generics is bad" is most often
hyperbole.

I can also "do without" generics and in fact even though Go lacks it I
prefer Go to all other languages that I know. I still would appreciate a
generics version in Go's spirit.

On Mon, Feb 19, 2018, 16:06 Ignazio Di Napoli <neclep...@gmail.com> wrote:

>
> On Monday, February 19, 2018 at 4:04:12 PM UTC+1, Ignazio Di Napoli wrote:
>>
>>     data2 := found.(float32)   // THIS PANICS AT RUNTIME, data2 is int
>>
>
> Sorry, found is int.
>
> --
> 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.
>

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