Replies: 6 comments 11 replies
-
Traits are equivalent to ETA: |
Beta Was this translation helpful? Give feedback.
-
You might prefer
To quote your own words: can you point me to the exact line or phrase in the Python manual where it is mentioned to use
Things in |
Beta Was this translation helpful? Give feedback.
-
I do have a slight concern about using My concern is that there could be a disconnect in meaning between python and mojo's In python, the Ellipsis isn't just a placeholder; it's an actual constant that has a value. It's a special value that can be used and interpreted by python in different ways (eg slicing syntax), but it is still an actual value. In python, you can invoke this: def try_me():
...
try_me() Mojo seems to be using The compile time in bold is important. I am also curious how So, I think mojo still needs to be fleshed out a bit more. |
Beta Was this translation helpful? Give feedback.
-
Yeah, it's the disambiguation I am a little concerned about. Not a lot, but I think if enough of these special cases pop up, the more overload it will be to remember. I think the
Oh, I am not a rust expert :) Some |
Beta Was this translation helpful? Give feedback.
-
I'm not a huge fan of I would also be satisfied if Mojo were to introduce a new keyword that means |
Beta Was this translation helpful? Give feedback.
-
This proposal seems like a pretty clear "no", in that it breaks from the core principles of what Mojo is about. We aren't trying to be a similar-but-different language to Python, we are building into a full superset over time. If you don't like |
Beta Was this translation helpful? Give feedback.
-
Motivation:
Proposed Solution:
Benefits:
Beta Was this translation helpful? Give feedback.
All reactions