I agree especially on the last part of your comment.
I feel like generics should be used only to solve specific problems that 
cannot be solved otherwise, and I personally would prefer not to use them 
unless absolutely needed.

We should always remember that with great power come great responsibilities 
and generics - if anything - will be a tool, not "the new way of writing 
Go", IMHO.

On Tuesday, 18 September 2018 01:02:41 UTC+1, alanfo wrote:
>
> Even if it were possible to eliminate the built in generic stuff, I think 
> it would be a bad idea to do so.
>
> For better or for worse it's now part of the fabric of the language and 
> just about every program ever written in Go 1 would have to be fixed if it 
> were replaced.
>
> Also there are many in the community who don't want generics and will 
> probably avoid using them if they can. If that's their choice, then I think 
> they should be allowed to make it and carry on as they are.
>
> Alan
>
> On Monday, September 17, 2018 at 10:44:16 PM UTC+1, Michael Jones wrote:
>>
>> Firstly, my compliments to Russ, Robbert, and Ian, for patience, 
>> thoughtfulness, and insight. Whatever the best answer is, no doubt your 
>> intellectual process is an excellent way to find it.
>>
>> My comment is a meta-comment, a question/proposal: *if generics arrive 
>> in Go 2 then can we "go fix" Go 1 code to use this mechanism to replace the 
>> existing built-in magic generics in Go?*
>>
>> For example, if it is possible to implement *map* in ordinary library 
>> code, then should it be the rule to do so? The heop is that accepting this 
>> as the test for goodness simultaneously proves capability and reduces the 
>> instances of magical compiler support in favor of a new orthogonal feature, 
>> perhaps making Go 2 conceptually smaller, which seems a good goal.
>>
>> -- 
>>
>> *Michael T. jonesmichae...@gmail.com*
>>
>
-- 




This email, including any attachments, is confidential and may be 
privileged. If you are not the intended recipient please notify the sender 
immediately, and please delete it; you should not copy it or use it for any 
purpose or disclose its contents to any other person. If the email, 
including any attachments, is legally privileged, you should not forward it 
to any other person.

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