JustForFun88
JustForFun88
> Oh wow, nice catch! In hindsight, I would have not have expected this behavior from a (safe) function called `get_or_insert_with`, had I not had experience with hash-map internals already....
> I'm confused, isn't this what `("A",) * 2` calls? It produces `("A", "A")` as well. Perhaps you misinterpreted what `mul` was alluding to in this context? Yes you are...
> Do we really need all these methods? I feel like they're making the scripting unnecessarily complicated. These are just a few features and they make scripting easier, not harder....
> Perhaps we can find a compromise by making a package with those functions? That way all the other ones in the linked references can be added as well. I’m...
> I think this is rather subjective. I personally find `(1, 1) + (2, 2)` easier to read then `(1, 1).append((2, 2))` and `(1,) * 3` also not particularly bad....
> Again, this is subjective Just think about whether this is taking too seriously just one of the dozens of types in Typst. Adding this method does not change the...
> > Just think about whether this is taking too seriously just one of the dozens of types in Typst. Adding this method does not change the language itself and...
> However, I still have the concern I raised above: When seeing the name repeat, it is not clear to me whether it repeats one element N times, or an...
> What I mean is that the method could also be understood as `(2, 3).repeat(3) == (2, 3, 2, 3, 2, 3)`, which is what it does in Rust. So...
@LGUG2Z Actually, it looks like there is another bug. We now update the index of the focused floating window, but the status bar only changes if there is at least...