DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Potentially add bracket notation for field access #103

Open DylanSp opened 2 years ago

DylanSp commented 2 years ago

As well as object.field, allow object["field"]. The big thing this enables is variable field names, i.e.

fieldName = "field"; object[fieldName]