Simon Hellsten
Simon Hellsten
### Bug description Writing a struct with a field of its own type in VS Code will crash the language extension (stable/nightly), instead of detecting the problem. The extension(s) crashes...
### Bug description I believe the issue https://github.com/modularml/mojo/issues/74 has resurfaced. The following code will segfault: ```mojo #crash.mojo struct Node: var rec: Node fn __init__(inout self): pass ``` But I expected...
### Bug description Unexpected behavior: - `str(String())` isn't an empty string, i.e. **all** of the following assertions will fail: ```mojo def main(): assert_equal(str(String()), String()) assert_equal(str(String()), String("")) assert_equal(str(String()), str(String(""))) assert_equal(str(String()), "")...
For issue #2346 (as an alternative to #2378). All four comparisons (`__lt__`, `__le__`, `__gt__`, & `__ge__`) uses a single `__lt__` comparison (instead of checking less/greater than + potentially another "equals...
This is a follow-up to #2409. String comparisons for `StringRef` are implemented. `StringRef` make use of `memory.memcmp` for all of its 6 comparisons now, hopefully this change is ok. `String`'s...
### Review Mojo's priorities - [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities. ### What is your request? Currently, `String`'s `split`...