Python’s “with as” Statement in Julia, JavaScript, Lua and Other Languages

Erik Engheim
3 min readMar 19, 2019

One of the challenges for me to grasp the with as feature in Python, its need is not apparent unless you have a deeper understanding of the limits of the Python language.

A Ruby, Julia, Lua, Go, JavaScript or Swift developer for instance would not need this statement added. Why is that?

At the heart of the problem is a cherished feature by many Python developers: the use of indentation to indicate code blocks.

--

--

Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.