Re:A concise guide to the latest Go generics draft design
by scns on Thursday June 18, 2020 @11:13AM
(#23563815)
Maybe you are missing that this is not possible in Go yet?
Re:A concise guide to the latest Go generics draft design
by roblabla on Thursday June 18, 2020 @11:35AM
(#23564039)
OP specifically said the constraining mechanism was unique, hence why GP (and myself) are curious about what makes it more interesting/powerful than what exists in other languages like C#.
Re:A concise guide to the latest Go generics draft design
by maybeOneDay on Thursday June 18, 2020 @11:39AM
(#23564089)
I was questioning the uniqueness of the feature is all - it seems to me that there isn't anything unique about the constraints available in Go.
Re:A concise guide to the latest Go generics draft design
by throwaway894345 on Thursday June 18, 2020 @11:20AM
(#23563893)
I do wish people would resist the reflex to overtly digress onto their own favorite programming language in any given programming HN thread. I'm not talking about insightfully comparing two languages; I'm talking about going completely off-topic because you want to talk about your own favorite language.
Re:A concise guide to the latest Go generics draft design
by maybeOneDay on Thursday June 18, 2020 @11:42AM
(#23564114)
If this is in reference to my bringing up of C# - I did so in order to talk about whether or not Go has generic constraints which are unique (which would be awesome!). I used C# as an example of a language that has constraints that are the same as/as powerful as those in this Go proposal so as not to be making an unsubstantiated claim.
[0] https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...