c# - Will a pointless semicolon have any performance impact? -


sometimes, notice add additional ; after statement.

example:

console.writeline("meow");;

will effect performance in app? specifically, wondering c#.

none whatsoever; not impact il code compiler generates.

it may have performance impact on coworkers have maintain code...

you might interested in reading empty statements, such

bool processmessage() {...} void processmessages() {    while (processmessage())       ; } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -