core: Inferencer should treat item assignments differently than direct assignments #482

Closed
opened 2024-07-31 10:44:23 +08:00 by lyken · 1 comment
Collaborator

The implementation of the type inferencer should consider item assignments differently, i.e., target[key] = value. Currently, the current implementation is mixed with direct assignments, e.g., my_var = value.

The Inferencer should have a fold_setitem(target, key, value) and the CodeGenerator should have a gen_setitem(target, key, value) to handle target[key] = value with better control.

The implementation of the type inferencer should consider item assignments differently, i.e., `target[key] = value`. Currently, the current implementation is mixed with direct assignments, e.g., `my_var = value`. The `Inferencer` should have a `fold_setitem(target, key, value)` and the `CodeGenerator` should have a `gen_setitem(target, key, value)` to handle `target[key] = value` with better control.
lyken added the
low-priority
label 2024-07-31 10:45:27 +08:00
lyken changed title from core: Inferencer should treat `__setitem__` assignments differently than direct assignments to core: Inferencer should treat item assignments differently than direct assignments 2024-07-31 14:37:01 +08:00
lyken removed the
low-priority
label 2024-08-02 15:45:41 +08:00
Author
Collaborator

Fixed by #483. Closing.

Fixed by https://git.m-labs.hk/M-Labs/nac3/pulls/483. Closing.
lyken closed this issue 2024-08-06 09:47:27 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#482
No description provided.