On Sat, Feb 6, 2021 at 5:36 PM Sean <s.tolstoyev...@gmail.com> wrote:

> I think there is definitely a need for a built-in "remove" function for 
> arrays and slice.
> Everyone is writing their own implementation for this, it is both confusing 
> and "x = append(a[:x], b[x:])" like blablabla is not readable.

Please define the semantics of "remove" operation. IINM, that has not
yet been done in this thread.

Note that "removes an element" of a slice is not an acceptable
specification. That's circular and useless.

The specification must define what happens to which elements of the
slice. Additionally it must be specified what are valid arguments of
"remove" and what will happen if they are not valid.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-Us2fvyhWMt2WLD4EDQAv%3Deab7ToH_94EWP_WxSg2ASEA%40mail.gmail.com.

Reply via email to