Programming language design

E.g. Swift:

Many references to one variable.

  • In Python: Reference semantics. Defensive copies ⇒ clone with bad performance
  • In Swift: Value semantics. Copy on write. Only one reference ⇒ in-place update.
  • In Java: Immutable strings. Also in functional languages. Safe, but expensive.
  • programming_languages_design.txt
  • Last modified: 2020/10/24 22:31
  • by phreazer