-
Notifications
You must be signed in to change notification settings - Fork 25
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
Regex based literals #5
Comments
This could solve the b vs kb issue as well. |
How would you feel about breaking the current prefix / suffix stuff? |
Replacing it with regex? I don't think it needs to break the prefix suffix stuff. Those would still be supported: [[OCUDLManager defaultManager] registerPrefix:@"#" forClass:[UIColor class]];
// can just be a helper which does:
[[OCUDLManager defaultManager] registerRegex:@"^#" forClass:[UIColor class]]; A better regex for UIColor would capture the # and 3-6 hex characters to be more precise, but I don't think regex has to break prefix/suffix. |
That is true and that is what I've been working on. I think I've just come up with a solution. Going to try it now |
It would be interesting to do:
This would also allow the NSUUID literal to be simplified to not require "uuid" at the end.
The text was updated successfully, but these errors were encountered: