Overview of Dict, Variant and Optional in Mojo🔥

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 5

  • @aethermass
    @aethermass 9 месяцев назад +3

    Is a String ever not a StringKey? Seems like the base String class should just implement the interface for StringKey. The current implementation seems to handle this with a conversion. Does that have a performance impact opposed to making the base String class implement the methods from StringKey?

    • @JC-tr2kw
      @JC-tr2kw 7 месяцев назад

      @aethermass this seems already implemented for String / StringLiteral -> Implemented traits:
      AnyType, Boolable, CollectionElement, Copyable, EqualityComparable, Hashable, IntableRaising, KeyElement, Movable, Sized, Stringable

  • @StefanUytterhoeven
    @StefanUytterhoeven 6 месяцев назад

    No dict copy?

  • @StefanUytterhoeven
    @StefanUytterhoeven 9 месяцев назад +2

    Dict is very very slow. Way much slower than in python!