Two questions #252
Unanswered
bgrundmann
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It would be indeed nice to have a mutable vector, but I think it needs to be a separate type, something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why can I only modify a vector inside a local-var? That is why is there no function:
Given perceus / reference counting this should be efficient and would allow one to implement for example a classic hash table efficiently?! (This was actually what I wanted to try as my first experiment with koka but immediately failed with this road-block).
Why is the console effect internal? That is I thought it would be neat to implement a expect testing framework (similar to https://github.com/janestreet/ppx_expect) for koka, where a test is a function with console effect, but the calling function intercepts the writes to the console to compare against the expected string. But again that seems to be impossible not for a deep reason internal to koka but let's called implementation choices.
Did I misunderstand something?
Beta Was this translation helpful? Give feedback.
All reactions