Skip to content

Wrong design: Dependencies separated by "!" #34

Open
@ppeterka

Description

@ppeterka

Any strings containing multiple paths, or URLs, like the dependencies in AMD:

  • Should be separated by a character that is not valid in the most common file systems
  • Or there should be a way of escaping the separator character(s).

The current spec prevents the module paths from being correctly resolved when any of them contains an exclamation mark.

Problematic part

If Loader Plugins are supported in the AMD implementation, then "!" is used to separate the loader plugin's module id from the plugin's resource id. Since plugin resource ids can be extremely free-form, most characters should be allowed for plugin resource ids.

Suggestions

  • Change the separator to | - which is not valid in a path in all of the file systems I know (many code changes)
  • Have a way to escape ! in a path. even as simply as doubling it up: !!
  • Have a way to enclose full paths, akin to how CSV cells are enclosed

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