Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.

Oil Expressions vs. Python

Oil's expression language borrows heavily from Python. In fact, it literally started with Python's Grammar/Grammar file.

This doc describes some differences, which may help Python users learn Oil.

If you don't know Python, see A Tour of the Oil Language.

Table of Contents
Literals for Data Types
Same as Python
Changed
New
Omitted
Operators
Note: Oil Does Less Operator Overloading
Same as Python
Changed
New
Removed
Oil vs. JavaScript
Semantics
Differences vs. Python
TODO

Literals for Data Types

Same as Python

Changed

New

Omitted

Operators

Note: Oil Does Less Operator Overloading

Oil doesn't overload operators as much because it often does automatic string <-> int conversion (like Awk):

Same as Python

Changed

New

Removed

Oil vs. JavaScript

Semantics

Oil's syntax is a mix of Python and JavaScript, but the semantics are closer to Python.

Differences vs. Python

TODO


Generated on Sun Jul 24 00:29:42 EDT 2022