Jacqueline Firth

Results 453 comments of Jacqueline Firth

It's been several years so my memory is hazy, but I think the check was there because it was a low-effort way to prevent `(with-mocks foo (with-mocks foo _))` from...

@samdphillips Over four years later, your suggestion is finally implemented. See #524.

> This reduces zo size in plot-gui-lib **by about 11x**. Whoa

> * translating `[1,2,3]` to builder notation seems like it would be a significant performance hit; can't we translate it to something like `List.unsafeFromVector(racket.vector(1,2,3))` (or use quoted vectors for the...

This is ready for review now.

> One question I have is about `append`: will that be part of the builder interface? (It seems like a common pattern to build up a list with appends, not...

To clarify, my use case is a `Sequence.toList()` method. Defining that on `Sequence` directly would introduce a cyclic dependency between `Sequence` and `List`. So instead, I'd like to define `Sequence`...

Kotlin's extension methods were exactly my inspiration here 🙂

Unfortunately that means changing a method from a regular method to an extension method can break programs, especially programs that don't use annotations much. But I think that drawback could...

Oh, one more important point: extension methods should be available on subtypes too. So `(xs :: Collection).toList()` should work, since `Collection` extends `Sequence`.