I like to draw commutative diagrams using the xymatrix command. What I do not like is the fact that xymatrix is a command and not an environment. The structure of the xymatrix minilanguage is similar to some LaTeX environments that provide alignment of math formulas (array,align etc.), and it feels just weird to use a command in the xymatrix case.
I would like to define an environment that behaves exactly like the xymatrix command, but I do not know enough TeX to do that, so my naive attempts fail.
Could you write such an environment, or point me towards solution of my problem?

\xymatrix, but perhaps take a look at https://tex.stackexchange.com/questions/115783/how-to-draw-commutative-diagrams astikz-cdis likely the best plan. – Joseph Wright Jan 09 '23 at 10:26