Roger Peppe

Results 283 comments of Roger Peppe

> What is the point of SliceToMap except to compare slices order-independently? It's just a roundabout way of writing IgnoreOrder. To my mind the name `SliceToMap` makes it clear how...

FWIW I use a generic ordering function all the time - I ended up putting it into the [quicktest package](https://pkg.go.dev/github.com/frankban/quicktest?tab=doc) with this ugly and slow, but simple hack: ``` cmpopts.SortSlices(func(x,...

Another test: ! 9 (expected json is `"9"` but several YAML parsers don't interpret the `!` correctly and produce `9` instead)

Having looked in a bit more detail at the jsonpath implementation, it really needs a very significant refactoring, if not a rewrite. Here's an example from the code: ``` func...

As another thought perhaps related to this: if I'm single-stepping a program with multiple goroutines, I often don't want started goroutines to continue - I would like to be able...

I am not. I'm using Go 1.11.