Skip to content

Nearoh v0.2.0 - Dictionaries and Core Data Structure Expansion

Choose a tag to compare

@ReeceGilbert ReeceGilbert released this 04 May 00:18
Immutable release. Only release title and notes can be modified.
95c7b02

Nearoh now supports dictionaries / maps as a first-class runtime data structure.

This release adds dictionary literals, dictionary indexing, dictionary index assignment, and len() support for dictionaries.

Example:

person = {
    "name": "Reece",
    "age": 21
}

print(person["name"])
print(person["age"])

person["age"] = 22
print(person["age"])
print(len(person))

Expected output:

Reece
21
22
2