Skip to content

Change lib and how codes are compiled #11

@nguyenphuminh

Description

@nguyenphuminh

Is your feature request related to a problem? Please describe.

  1. import[] is unnecessary, and it will generate a bunch of files even though they might never be used.
  2. Many commands that are now dependent to import[] should not be anymore for the same reason as above, and it's also fairly slow since they're called like a function
  3. Many commands will not work if being put in a same line:
    Example:
    if[] something == something cnd[] "a" "b" "c" "d"
    will not work

Describe the solution you'd like
The key in solving these problems are a file called libgen.bat. This file will generate codes for commands.

  1. Make import[] optional.
  2. Make commands independent and use libgen.bat to generate libs into a file like before. Also, the codes should be in a parenthesized block to gain more performance. And there will be an option on whether you want to use commands as functions or just compiling them to normal codes.
  3. The codes should be in a parenthesized block so that the one line codes will work. Also, the compiler should be remade.

Describe alternatives you've considered
There are no alternatives.

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