Parameter ordering: Destinations on the left

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 is © Adrian Smith.
It was originally published on 18 Oct 2014

Follow me: Facebook | Twitter | LinkedIn | Email

More on: Coding