Replies: 1 comment 3 replies
|
#1287 fixes this. Merged last week, but not yet released. Starting with v0.12,
As for syntax, Earlier in #1202 and #892 we discussed signaling mutability in the context of e.g. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
doesn't compile with
receiver is immutablewhich looks weird to me as I have put themutbeforeself. Instead, Lis wants me to declare self as ref:fn next(mut self: Ref<StringCharSource>) -> int {. To memut selfandmut self: Ref<StringCharSource>are far apart. Why in one case I don't need to (or even must not?) specify the type, but in the other case I must provide it? IMHO this needs some polishing. Maybemut Ref<self>would be more compact (if you want to stick with theReffor the moment)?All reactions