There's a lot of segments of code in pgrx-sql-entity-graph that have a lot of imperative state, not because that's essential to describing them, but simply to implement a bit of relatively minor control flow. Instead of continuing to do that, let's simplify the graph code by allowing similar types to be described by a behavior they both implement. Abstractions can sometimes clarify things! Who'd have thought?
There's a lot of segments of code in pgrx-sql-entity-graph that have a lot of imperative state, not because that's essential to describing them, but simply to implement a bit of relatively minor control flow. Instead of continuing to do that, let's simplify the graph code by allowing similar types to be described by a behavior they both implement. Abstractions can sometimes clarify things! Who'd have thought?