Earlier quoted context omitted.
> apparently "singular they" is offensive I think the point was that 'singular they is offensive' only when people have specifically asked for certain pronouns (ie you're blatantly disregarding people's requests)?
except this is a code example on the site im not going to write bob and alice and then worry about "well what if these fake people in this example i made up are actually trans" lol give me a break.
Same as an author who is writing a novel, is free to invent characters and assign gender, sexual orientation, and any other character traits they want.
It's your story, they are your characters. You decide if it's a he, she, xe, or whatever.