---
title: "Discussion on \"Understanding Why We Don't Use Pointers to change the value of the element in Slice Data Type in Go Lang!\" | Hashnode"
description: "Discussion on \"Understanding Why We Don't Use Pointers to change the value of the element in Slice Data Type in Go Lang!\". Ever wondered why we don't use a pointer to change the value of the element in a Slice (GO Lang) like we do with other data types like Int, String, or Struct ?\nLet's have a look at the inner functioning of Slices and understand how they are working i..."
url: "https://hashnode.com/posts/understanding-why-we-dont-use-pointers-to-change-the-value-of-the-element-in-slice-data-type-in-go-lang/6545484b00116420916df1f1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding Why We Don't Use Pointers to change the value of the element in Slice Data Type in Go Lang!](https://yash-raj.hashnode.dev/understanding-why-we-dont-use-pointers-to-change-the-value-of-the-element-in-slice-data-type-in-go-lang?utm_source=hashnode&utm_medium=feed)

Ever wondered why we don't use a pointer to change the value of the element in a Slice (GO Lang) like we do with other data types like Int, String, or Struct ? Let's have a look at the inner functioning of Slices and understand how they are working i...

Nov 3, 2023 · 2 min read · yash-raj.hashnode.dev  
Updated Mar 13, 2024  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Yash Raj](https://hashnode.com/@yash101)

@yash101

  
[View profile](https://hashnode.com/@yash101)

## Responses 1

Markdown supported · ⌘↵ to post

[Saumya Jain](https://hashnode.com/@saumyajain09)

[Sep 25, 2024](https://hashnode.com/posts/understanding-why-we-dont-use-pointers-to-change-the-value-of-the-element-in-slice-data-type-in-go-lang/6545484b00116420916df1f1/comment/66f458df542afa133464d538)

the flowchart about array and slice was really helpful :)

[Aishani Rajpal](https://hashnode.com/@aishanirajpal)

[Sep 25, 2024](https://hashnode.com/posts/understanding-why-we-dont-use-pointers-to-change-the-value-of-the-element-in-slice-data-type-in-go-lang/6545484b00116420916df1f1/comment/66f458d41c11d43c3d112efd)

hello i am new to this
