programming_languages_design

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 20:31
  • by phreazer