2 ms·
Don't use Go, use C#. The same code is even more terse: List<T> lst = new(); lst.Add(obj); Done. Sure go is nice if you only care about being hip and trendy,
by mystified5016 2y ago
Don't use Go, use C#. The same code is even more terse:
List<T> lst = new();
lst.Add(obj);
Done. Sure go is nice if you only care about being hip and trendy, but C# is better in more situations than you'd think. Why bother with new languages and absurd syntax when C# has been around for decades and has perfectly clear syntax that spells out exactly what you want in simple English?
Don't be an asshole. "Just use today's trendy language instead of crusty old C++" makes you an asshole. Stop it.
- deleted 2y ago[deleted]