[Scilab-users] Dump the output of a function

sgougeon at free.fr sgougeon at free.fr
Tue Jan 16 14:12:00 CET 2018


Hello Clément,

OK for your confirmation. Unfortunately, in Scilab "_" can't be used, because _() is a defined function aliasing gettext(), and Scilab needs it as is.

I don't think it was a good thing to use a single character to define such an alias, but it is as is.
It would be unlikely possible to rename it... Would it?

Best regards
Samuel

----- Mail original -----
De: "Clément David"
À: users at lists.scilab.org
Envoyé: Mardi 16 Janvier 2018 09:31:20
Objet: Re: [Scilab-users] Dump the output of a function

Hello Christian, Samuel,

My 2c, most of the modern languages supporting such a feature are using the one-character variable
trick; sometimes enforced by conventions. For example, Go, Rust and Python are using `_` as in :

[_,_,kb] = intersect(grand(1,10,"uin",0,9), grand(1,10,"uin",0,9));

This character appears as a visual blank thus the function call is easily readable.

Regards,

--
Clément



More information about the users mailing list