Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd love it if you could ask technical questions on the discord channel, as that's more scalable for us. Some quick answers:

1) We're likely to change the reference syntax to inout: https://github.com/modularml/mojo/issues/7

2) they're the same thing. Consume is the word we're currently using for the operator, owned is the argument convention. We may need to iterate on terminology a bit more.

3) Because it composes properly with chained expressions: `x.foo().bar().baz^.do_thing()` vs something like `(move x.foo().bar().baz).do_thing()`



I worry a bit that postfix use of ^ is going to create some headaches with people expecting exponentiation.


can you link the discord channel, I've seen it mentioned several times but haven't been able to find it.

Edit: found it. https://discord.gg/modular




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: