Open yurtsiv opened 3 years ago
Hey! I'd love to work on this. I went through the code base and the majority of changes should be made in interpreter/eval.hs
, any further directions you could provide would be really helpful.
Hi @siddhantrao23,
Yes, you're right. The exact place is where -- TODO: compare all primitive types
is located.
I'd recommend adding tests first (test/Interpreter/EvalSpec.hs
) and then gradually implementing the functionality.
stack test --file-watch
is really handy in this case
Thank you!
@siddhantrao23 Description is updated slightly
Thanks! I'll start working on it now
hey @yurtsiv My exams came up so I didn't get to work on this! If there are others, do go ahead. I will contribute after my exams.
@siddhantrao23 Hi! No problem :slightly_smiling_face:
Currently
==
only works on integers. We need to implement it for each existing type and it should always compare by value.Semantics
EDIT:
Since
/=
is already implemented, we should make it work too