Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specialized string-like types with associated metatable methods #70

Open
gvvaughan opened this issue Jul 17, 2014 · 1 comment
Open
Milestone

Comments

@gvvaughan
Copy link
Contributor

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.

@gvvaughan
Copy link
Contributor Author

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.

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

No branches or pull requests

1 participant