Lesley's Digital Garden

Home

❯

Notes

❯

implicit variable declaration

implicit variable declaration

Mar 14, 2024

  • computing/PL/syntax

Implicit Variable Declaration

The implicit variable declaration semantics in Python, Ruby, CoffeeScript, and non-strict JavaScript simplifies the language on surface but all at the end create ambiguities. It combines especially badly with block scope.

At the end, languages with implicit variable declarations end up adding more complexity and features to compensate the ambiguity. For example, Python has global and nonlocal keywords.

References

  • Crafting Interpreters Chapter 8 Design Notes

Graph View

  • Implicit Variable Declaration
  • References

Backlinks

  • Programming Language Design MOC

Created with Quartz v4.5.2 © 2026. All notes are written in Obsidian.

  • GitHub Repository
  • Mastodon