You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the roadmap and priorities and I believe this request falls within the priorities.
What is your request?
Allow using the syntax s[idx, label="test"] for fn __getitem__[*, label: String](self, idx: Int) -> R. Note that if both label and idx are runtime/compile-time, the syntax works fine; this feature request is for support when there is a mix of them
What is your motivation for this change?
Achieve better uniformity between runtime and compile-time APIs.
soraros
changed the title
[Feature Request] Labeled parameter argument in __getitem__ syntax
[Feature Request] Keyword only parameter argument in __getitem__ syntax
Jul 30, 2024
Review Mojo's priorities
What is your request?
Allow using the syntax
s[idx, label="test"]
forfn __getitem__[*, label: String](self, idx: Int) -> R
. Note that if bothlabel
andidx
are runtime/compile-time, the syntax works fine; this feature request is for support when there is a mix of themWhat is your motivation for this change?
Any other details?
N/A
The text was updated successfully, but these errors were encountered: