Named Parameter - Order of Parameters

Order of Parameters

In languages without named parameters, the order of parameters is necessarily fixed, since it is the only thing that the language can use to identify which value is intended to be used for which purpose.

With named parameters, it is usually possible to provide the values in any arbitrary order, since the name attached to each value identifies its purpose. A few languages such as Objective-C use names but require the parameters to be provided in a specific order.

Read more about this topic:  Named Parameter

Famous quotes containing the words order of, order and/or parameters:

    If we are the younger, we may envy the older. If we are the older, we may feel that the younger is always being indulged. In other words, no matter what position we hold in family order of birth, we can prove beyond a doubt that we’re being gypped.
    Judith Viorst (20th century)

    Not that it was beautiful,
    but that, in the end, there was
    a certain sense of order there....
    Anne Sexton (1928–1974)

    What our children have to fear is not the cars on the highways of tomorrow but our own pleasure in calculating the most elegant parameters of their deaths.
    —J.G. (James Graham)