Open kurtbrose opened 4 years ago
Stopping by to note that Python's PEP 505 on this got deferred. To me that's notable. Glom has an easy way of getting a default out of a long line of attribute accesses (glom(target, 'a.b.c.d', default=None)
). And maybe once in my entire programming career have I ever needed to "get strict again" (i.e., give me a None if b
isn't present, but raise an error if there's a b
but no c
). To me that feels like pattern matching lite (or microlite), and we already have Match coming in! So I think I want to defer this, and leave the Path simple whenever possible. Hope this deferral makes sense to any and all reading this. If we end up having a clear cut use case, you know I'll happily revive it.
Codecov Report
97.40% <92.85%> (ø)
99.21% <100.00%> (ø)
69.87% <0.00%> (ø)
33.33% <0.00%> (ø)
100.00% <0.00%> (ø)
98.75% <0.00%> (ø)
100.00% <0.00%> (ø)
97.94% <0.00%> (ø)
100.00% <0.00%> (ø)
100.00% <0.00%> (ø)
Continue to review full report at Codecov.