ocannl icon indicating copy to clipboard operation
ocannl copied to clipboard

Implement local let-bindings in the `%nn_cd` syntax

Open lukstafi opened this issue 2 years ago • 2 comments

To properly support local bindings, we need to collect the type environment. Add the syntactically inferred types with the identifiers on let introduction, and look them up for identifiers when translating the body (the scope of the binding).

lukstafi avatar Mar 19 '23 19:03 lukstafi

This is needless complexity.

lukstafi avatar Aug 27 '24 20:08 lukstafi

This does make sense. The environment needed will hold a kind (e.g. non-diff tensor, code, array etc.) and slot (LHS, RHS1 etc.) of the bindings.

lukstafi avatar Aug 11 '25 15:08 lukstafi