[Scilab-users] On parameters passing by name in scilab functions
Samuel Gougeon
sgougeon at free.fr
Mon Feb 27 19:54:00 CET 2017
Le 27/02/2017 à 19:36, Samuel Gougeon a écrit :
> .../...
> So, Tim is right. Calls with named parameters make the code fragile,
> or make somewhat harder to code the analysis of input arguments in a
> robust way.
> /This coding way still increases functions overheads, that make them
> slower./
Hmmm, actually, i don't really think so. It would be more robust but
also more straightforward and readable to test the existence of input
parameters according to their name instead of according to their number
and position.
But this is not the way used in most functions definitions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170227/cb9a8f29/attachment.htm>
More information about the users
mailing list