-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Table add missing sink
#24721
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
Comments
Ping @demotomohiro please work on this. |
I will take over it since it is similar to #24720 which lacks corresponding |
Same for |
import std/tables
type NoCopies = object
proc `=copy`(a: var NoCopies, b: NoCopies) {.error.}
var t = {NoCopies(): NoCopies()}.toTable() |
|
well, something like |
It could be a breaking change but adding specializations on seq and array would make it sinkable. |
this makes for a messy language because every time there's something that takes openArray, it would also need these specializations which kind of defeats one of the purposes of openArray.. |
Description
Table should not need to copy its key argument during insertion:
The same probably holds for a lot of std lib containers, ie the concept applies to all of them.
Nim Version
2.2
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: