Sintrastes / hafly

Dynamic embeddable scripting language in Haskell.
https://sintrastes.github.io/hafly
GNU Affero General Public License v3.0
3 stars 0 forks source link

Implement record accessors. #32

Open Sintrastes opened 1 year ago

Sintrastes commented 1 year ago

We'll need some way to disambiguate these from function calls, maybe something like:

For an expression x.y:

  1. If x is a record, first check to see if it has any fields y. If so, use y as a record accessor for that field.
  2. Otherwise, check to see if there is a function y that could act on x.