Skip to content

specialized string-like types with associated metatable methods #70

Open

Description

@gvvaughan

In the vein of Pythons regex strings (r "this is a regex"), it would be super-useful to add suitable metatables (and hence appropriate methods) to certain types of strings, as well as being able to recognize them with argcheck to help reduce coding errors.

For example, a file path could be declared as Path "~/.zemacs/init.zl", and automatically expand tilde expressions, and have methods for splitting, inserting etc by component much like the existing package.find and friends.

Activity

  1. added this to the milestone on Jul 17, 2014
  2. gvvaughan commented on Aug 15, 2014

    @gvvaughan
    ContributorAuthor

    Scratch the Path syntax proposal above...

    Better would be to do that with Filename instead, and use Path for objects with metamethods that lend themselves to absorbing (and generalizing) the functions currently in std.package.

  3. modified the milestones: v41.4, v41.3 on Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions