mirror of
https://github.com/tbklang/tlang.git
synced 2024-09-08 01:43:03 +02:00
🧠 Ideation: Typechecking deque clean #185
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
tir
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 6 minutes 5 seconds
Due Date
deavmi
6 minutes 5 seconds
Blocks
Reference: tlang/tlang#185
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Ideation: Typechecking deque cleanto 🧠 Ideation: Typechecking deque cleanActually, mmh, this could be sorted out in the dependency generation - now that I think about it.
Because of #186 we need not worry about this actually.
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 :))