ingolemo
ingolemo
I've just pushed a commit that removes the restriction on `lens.Tuple` that you have to pass lenses. You can now pass it getters and setters and it should do the...
I'm not sure I understand what you're trying to say. I don't get how side-effects could unify setters and traversals. If you want a traversal that focuses parts of a...
How useful would it be to have a general convenience method for this? Haskell-style setter functions `(a -> b) -> s -> t` aren't particularly common in python. Does anyone...
I'm sorry; I don't know what that means.
Just to narrow down the example; the difference is between `lens.Each().Parts()` and `lens.Each() & lens.Parts()`. This is really an unfortunate api by me. I tried to make `lens.Parts` work more...
That library seem to be mostly focused on reducing data-structures; modifying their structure. Lenses are more suited for querying data-structures; modifying the data within them while preserving the structure.
I agree that the call stacks are monstrous. I'm not really sure how that refactor would work; could you give an example?
Yes, but the problem is that I don't know how to get from here to there. All the functions in the call stack are there to provide the abstraction necessary...
I thought lenses were confusing enough without trying to jam dynamic recompilation into the middle of everything. I will admit that I find such a challenge tempting. I'll see if...
Fallen at the first hurdle. Python doesn't show the source code when printing tracebacks from dynamically generated code because it looks up the filename and reads the file. For example,...