Parameter ordering: Destinations on the left

By Adrian Smith18 Oct 2014100 words1 mins to read

Most (all?) programming languages write assignment with the destination variable on the left hand side, i.e.

a = b+c;

Therefore most (all?) programmers are familiar with the destination for an operation being on the left hand side. Therefore, I think, when designing functions or commands doing copying or assignment, the result should also be on the left hand side.

This article was written by Adrian Smith on 18 Oct 2014

Follow me: Facebook | Twitter | LinkedIn | Email

More on: Coding