modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo
Other
21.91k stars 2.53k forks source link

[stdlib] Allow the simplified syntax `my_list.__str__()` #2673

Closed gabrieldemarmiesse closed 4 weeks ago

gabrieldemarmiesse commented 4 weeks ago

We cannot add traits to the container with this method because the type of self must be Self 😢 (at least it's the error message I get)

Yeah I don't think we'll be able to add those traits to containers until we have conditional conformance

modularbot commented 4 weeks ago

✅🟣 This contribution has been merged 🟣✅

Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours.

We use Copybara to merge external contributions, click here to learn more.

modularbot commented 4 weeks ago

Landed in 8ddef1302e7ba0b5cda0deffc7f81e149fd00bcd! Thank you for your contribution 🎉