News for hackers. Stuff that matters.
Re:Making a Go program 70% faster with a one character change by marcosdumay on Monday November 14, 2022 @01:19PM (#33598442)
a = [1, 2]

b = a

b[0] = 3

print(a)

What does the above print? If the language implements reference semantics, it prints [3, 2]. If it implements value semantics, it prints [1, 2].

Re:Making a Go program 70% faster with a one character change by Jemaclus on Monday November 14, 2022 @01:34PM (#33598697)
Thank you