|
|
|
|
|
by encoderer
4786 days ago
|
|
Not sure I agree with this logic. I could easily write a custom Append func in my own application because I would know the Slice types I'm trying to operate on. Writing a language feature is different than writing an application, and it has nothing to do with how trivial something is. Honestly, Append() as a concept is about as trivial as it gets.. |
|
More precisely, you would write one custom Append function per Slice type. AppendString, AppendInt, AppendWhatever.