Skip to content

dot operator as function doesn't seem to work #1568

Answered by jneem
suimong asked this question in Q&A
Discussion options

You must be logged in to vote

I think one issue is that we encode StaticAccess as a unary op with a fixed field name, not as a binary op. That is, x.foo gets encoded as the unary op (.foo) applied to x. Probably the easiest solution would be to interpret (.) as DynAccess instead.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@suimong
Comment options

@jneem
Comment options

jneem Sep 5, 2023
Collaborator

Answer selected by suimong
@suimong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants