🧠 Ideation: Typechecking deque clean #185

Open
opened 2024-05-12 15:18:31 +02:00 by deavmi · 3 comments
Owner

Purpose ✍️

The purpose is to think about how we could handle errors. For example, if a function like main() takes no arguments yet is given some, then we should actually show that as an error. yet, if a function is called and has no arguments then when time comes to processing it it grabs those from the top of the stack.

We should, therefore, do some sort of stack/deque check (idk if possible as it is just one big thing), it would require a slight modification to work, like a line to say, anything that has been addInstrB()'d sets such a line and we don't look past there.

# Purpose ✍️ The purpose is to think about how we could handle errors. For example, if a function like `main()` takes no arguments yet is given some, then we should actually show that as an error. yet, if a function is called and **has no arguments** then when time comes to processing it it grabs those from the top of the stack. We should, therefore, do some sort of stack/deque check (idk if possible as it is just one big thing), it would require a slight modification to work, like a line to say, anything that has been `addInstrB()`'d sets such a line and we don't look past there.
deavmi changed title from Ideation: Typechecking deque clean to 🧠 Ideation: Typechecking deque clean 2024-05-12 15:18:52 +02:00
deavmi added the
typing
needsfix
labels 2024-05-12 15:19:01 +02:00
deavmi self-assigned this 2024-05-12 15:19:04 +02:00
deavmi added this to the Dependency tree, type-checking and codegen project 2024-05-12 15:19:11 +02:00
deavmi added this to the Clean ups milestone 2024-05-12 15:19:21 +02:00
Author
Owner

Actually, mmh, this could be sorted out in the dependency generation - now that I think about it.

Actually, mmh, this could be sorted out in the dependency generation - now that I think about it.
deavmi added spent time 2024-05-12 15:20:21 +02:00
3 minutes
deavmi added the due date 2024-05-22 2024-05-12 15:20:33 +02:00
deavmi started working 2024-05-12 15:55:44 +02:00
Author
Owner

Because of #186 we need not worry about this actually.

Because of #186 we need not worry about this actually.
deavmi stopped working 2024-05-12 15:58:49 +02:00
3 minutes 5 seconds
deavmi added reference bugfix/handle_param_count_arg_mismatch 2024-05-12 16:02:21 +02:00
deavmi removed reference bugfix/handle_param_count_arg_mismatch 2024-05-12 16:02:24 +02:00
Author
Owner

Yeah, will close when this is sorted. It isnt a problem actually. Misdiagnosis. It is fixed by the param arg count checker, not by doing anythign deque-wise :))

Yeah, will close when this is sorted. It isnt a problem actually. Misdiagnosis. It is fixed by the param arg count checker, not by doing anythign deque-wise :))
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Total Time Spent: 6 minutes 5 seconds
deavmi
6 minutes 5 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2024-05-23

Reference: tlang/tlang#185
No description provided.