3 ms·
"Chaining ?[] sucks no matter what you do" I find myself wondering if making chaining easy just ends up affording bad design, and if that "suckage" is your pro
by jerf 7y ago
"Chaining ?[] sucks no matter what you do"
I find myself wondering if making chaining easy just ends up affording bad design, and if that "suckage" is your program trying to tell you about your bad design. I don't chain very much at all, because I generally consider chaining to be a sign that I need to add a better method somewhere. The big exception being reaching into a "dead" data structure where there's no particular invariants being maintained and no real reason not to just reach in deeply, and, for most programs, you really shouldn't have very many of those. I'd say you almost certainly have a major design problem if you've got this chaining happening all the time.