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
New Literal Syntax
Operators
New Operators
Not Supported
Semantic Differences
Related Links

Literals for Data Types

Other literals like ints and floats are the same as in Python.

New Literal Syntax

Operators

Kinds of of operators:

Equality:

Oil doesn't overload operators as much, and does string <-> int conversion:

Other:

New Operators

Not Supported

Semantic Differences

Related Links


Generated on Sun Jul 18 00:18:36 PDT 2021