2 ms·
Where extension methods really shine is with generic classes and structures, you can define methods over arbitrary generic bindings; e.g. a method over List of
by seanmcdirmid 13y ago
Where extension methods really shine is with generic classes and structures, you can define methods over arbitrary generic bindings; e.g. a method over List of int. Of course that isn't a problem in Go.
And even then, its all about the intellisense.
- NateDad 13y agoIntellisense is a good point. If you already have the variable there, getting the free "list of stuff I can do with this" can be pretty handy.