Skip to content

Allow Passing Source Files by Directory? #805

Description

@InsertCreativityHere

The Slice compiler accepts 2 "kinds" of input files:

  • source files: for which we will actually generate code
  • reference files: which we parse, but are only to be referenced by source files.

There is an asymmetry between these two that I'm not sure makes any sense to have.
Source files can only be passed in as individual files, while reference files can be passed as individual files, but also can be passed in by directory. In which case, we scan the directory for any .slice files and use them as references.

But... why?
If we think passing directories to slicec is okay and meaningful, I don't see a good reason to restrict it to only reference files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalslicecRelated to the 'slicec' crate

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions