RSS Amplifier

Recent Questions - Code Review Meta Stack Exchange · Jul 21, 2025

Is pseudocode allowed in *answers*?

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

There are several meta questions plus the help center making it clear that questions must provide real code. However, it is unclear to me whether answers must therefore also be runnable code. Specifically, at one point I provided an answer where I used not-quite-syntactically-correct examples for brevity: as one comment pointed out, I neglected to provide correct async return types; additionally I…

There are several meta questions plus the help center making it clear that questions must provide real code.

However, it is unclear to me whether answers must therefore also be runnable code. Specifically, at one point I provided an answer where I used not-quite-syntactically-correct examples for brevity: as one comment pointed out, I neglected to provide correct async return types; additionally I chose not to include all the params from the original question code.

In my view the (pseudo)code in the answer is intended to better illustrate the algorithmic suggestions I was making, to which end the specifics and even being directly runnable were less of a concern than readability. However, the commenter disagreed, and I can't find a meta question directly addressing this.

Must answers only contain real, runnable code (like questions) or is (pseudo/partial)code okay in answers when accompanying textual explanations?

Read on codereview.meta.stackexchange.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.