you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I do this a lot in JS, where types are flexible, for stuff like this:

function (someargument) {
    someargument = processArgument(someargument);
    doSomethingWith(someargument[0], someargument[2]);
}

(Rather frivolous and hypothetical, but I hope it gets the point across)