8000 Optimize away useless use of cat · Issue #52 · fildesh/fildesh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Optimize away useless use of cat #52
Open
@grencez

Description

@grencez

Useless use of cat sometimes makes a script easier to read. It's also super easy to detect and optimize away.

  • Parse scripts into an AST-like structure before interpreting their contents #86
  • Make splice -x filename a valid command.
  • Replace simple cat commands with splice builtin commands.
  • cat filename -> just open the input file.
  • Same for splice / / filename.
  • Same for splice -x filename.
  • splice -o filename -> just open the output file.
  • Update doc/styleguide/fildesh_style.md, which currently recommends UUOC even though it doesn't get optimized away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0