Tagged articles

Value Semantics

2 articles · Page 1 of 1
Nullbody Notes
Nullbody Notes
Nov 18, 2020 · Fundamentals

Understanding the Prototype Pattern in Go: Clone Objects Efficiently

This article explains the Prototype design pattern in Go, shows how to clone objects with various implementations, compares their effects on object independence, and clarifies Go's value‑semantic parameter passing using concrete code examples and detailed analysis.

CloneDesign PatternsPrototype Pattern
0 likes · 8 min read
Understanding the Prototype Pattern in Go: Clone Objects Efficiently
AI Cyberspace
AI Cyberspace
Dec 7, 2017 · Fundamentals

Why Python’s Chain Assignment Can Trip You Up – Understanding Value vs Object Semantics

Python’s chain assignment offers concise multiple-variable assignment, but its left-to-right evaluation differs from C’s right-to-left value-semantic approach, leading to surprising results in interview questions; understanding the distinction between value-semantic and object-semantic languages helps avoid subtle bugs.

Interview QuestionPythonValue Semantics
0 likes · 5 min read
Why Python’s Chain Assignment Can Trip You Up – Understanding Value vs Object Semantics