-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: non optional nth on Array and Vector #7526
base: master
Are you sure you want to change the base?
Conversation
f42415d
to
1a478c6
Compare
@mlutze ready to review I think |
Hi. I am a bit busy at the moment, but I will try to get around to it. Also just FYI: We may not be able to merge this in until there is a bit more progress on the effect side. |
Understood, I will park this for now. |
Why is there a file called |
A mistake - deleted, and fixed up the other comments too (thanks!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I did a detailed review. If you fix these things I think its good to go.
@stetimi Could you mark the comments as resolved, if they are indeed resolved :) |
Sure, I wasn't too sure of the protocol.
I think they're all resolved, but I'll double check and close them off when
I'm free.
…On Wed, 3 Apr 2024, 16:44 Magnus Madsen, ***@***.***> wrote:
@stetimi <https://github.com/stetimi> Could you mark the comments as
resolved, if they are indeed resolved :)
—
Reply to this email directly, view it on GitHub
<#7526 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5QUO2EESPR7UOVXEEZ7QBTY3O6PFAVCNFSM6AAAAABFRR63E6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTHEZTOMRTHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Done |
@@ -454,7 +454,7 @@ mod Test.Exp.Regions { | |||
MutList.push!(1, l); | |||
MutMap.put!(1, l, Array.get(0, a)); | |||
match MutMap.get(1, Array.get(0, a)) { | |||
case Some(k) => MutList.nth(0, k) == Some(1) | |||
case Some(k) => optionalNth(0, k) == Some(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are just test cases, so I think we should just use get
and avoid all the optionalNth stuff!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no get
in MutList
. Should I:
- add it and delegate down to
Array.get
- use
nth
and put try..with statements around the relevant tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. Not sure, let me get back to you.
I added one comment about simplifying the test cases. Once that is done, I will let @mlutze have a look and we can probably merge. He also needs to fix one of his projects before the merge. Thanks! |
Adding nth + IndexOutOfBounds effect, just on Array and Vector (I prefer to do it incrementally if that's acceptable).