support non-boolean conditions? #88

Closed
opened 2021-11-10 18:47:23 +08:00 by sb10q · 3 comments

Support if x: with x being e.g. int32, int64, float, list like in CPython.

Though if this messes up the type system it may not be worth doing.

Support ``if x:`` with ``x`` being e.g. ``int32``, ``int64``, ``float``, ``list`` like in CPython. Though if this messes up the type system it may not be worth doing.
sb10q added the
low-priority
label 2021-11-10 18:47:23 +08:00
Poster
Owner

@pca006132 Is it worth looking into this or should we just close this Issue? IMHO this kinda go against the explicit typing philosophy of NAC3.

@pca006132 Is it worth looking into this or should we just close this Issue? IMHO this kinda go against the explicit typing philosophy of NAC3.

This will not mess up the type system, just have to change the inference rule for if/while. However, I wonder if we really want this...

This will not mess up the type system, just have to change the inference rule for if/while. However, I wonder if we really want this...
Poster
Owner

OK, let's just close it.

OK, let's just close it.
sb10q closed this issue 2021-12-23 15:40:12 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
2 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#88
There is no content yet.