Skip to content

SFunction inefficient implementation #1

@telephon

Description

@telephon

SFunction implements value like this :

   value{ arg ...args;
      ^function.inEnvir( envir ).value( *args );
   }

   valueArray{ arg ...args;
        ^function.inEnvir( envir ).value( *(args.unbubble) );
    }

This is extremely complicated and inefficient, the following should be enough:

 value{ arg ...args;
      ^envir.use { function.valueArray(args) }
   }

also valueArray should take an array as argument:

   valueArray{ arg args; // not ... args
         ^envir.use { function.valueArray(args) }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions