*4channelers
The absolute state of Go
/v/ crossboarder detected
>another Jow Forumsfag leaking over and shitposting.
Most programming languages have a feature known as generics, which allows you to write functions or data types that work for a variety of data types rather than only one. Here's an example in Java.
class Pair
{
public T first;
public T second;
}
So now you can have a Pair which has two Integers, or a Pair which has two Strings, and so on.
Go doesn't have generics. This user has tried to simulate generics by using the ᐸ and ᐳ characters because they resemble < and >, and just copypastes + finds/replaces to create as many different types as he wants. This is not good programming, because Go is not a good programming language.
Nice explanation.
>custom processor and special unicode characters
10/10 for the why I continue to use Go mental gymnastics performance.
Thanks user, simple enough for me to understand but not too simple
Thanks
How would you do this in Go elegantly, is this reddit cunt actually pretty smart for doing it his way or is he a dumb cunt?
>How would you do this in Go elegantly
You can't.