Skip to content

Feature in k2.8 not in Kona #642

@gitonthescene

Description

@gitonthescene

I know the goal is to have Kona match K2 and possibly K3. Here's something I discovered when trying to parse sql.k

  abc[`f`g`h`i`j]:(0 1 2 10 20 30;101 102 103 104 3 4;`f`e`d`c`b`a;2 3 8 2 9 0;1 2 1 2 2 2)
  t:`abc
  @[t;"+[f;1]"]
1 2 3 11 21 31

I.e. it's evaluating +[f;1] where f is taken as from the table abc. (Since t is the symbol `abc it's acting on the global.)

This seems like a pretty advanced feature and I was a little surprised to find this worked like this. It feels like it's an early incarnation of expressions in K9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions