[Scilab-Dev] Proposal: replace eye() of size [-1 -1] with %eye = 1:0*$:1 as a new predefined constant

Samuel Gougeon sgougeon at free.fr
Fri Apr 12 15:27:32 CEST 2019


Hello devs,

eye() builds a very specific object, of size [-1,-1].

In the Bugzilla report http://bugzilla.scilab.org/16060 ,

  * I show that the added value of this specific object looks very poor
    with respect to the complexity and specific processing it requires
    in the code.

  * An idea is presented to replace eye() with a new predefined constant
    %eye = 1:0*$:1
    as a true implicitlist object,

  * and shows on some examples how it can easily work instead of eye().

IMO, in order to simplify Scilab code without removing any feature, the 
eye() syntax and object should be deprecated and replaced.
Indeed, i think that setting negative sizes is a rather bad way to 
encode such an object.

Looking forward to read you,

Regards
Samuel

PS: IMO we should take a special care about what we do with implicitlist 
objects, how we use and make them evolving. They look rather 
underexploited. So, anticipating other possible extended usages would be 
wise.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20190412/3c137de2/attachment.htm>


More information about the dev mailing list