DEV Community

Discussion on: Using NEW, instead of MAKE, to create slice

Collapse
 
lil5 profile image
Lucian I. Last

This doesn't make sense

The pointer memory address is the same but the slice address will be different on each append with or without it being referenced by a pointer.

You only just added an extra unnecessary pointer for no reason.

Collapse
 
freakynit profile image
Nitin Bansal

Try it out yourself. The slice address remains same.