Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

RFC: Improving hints related to $parse #102

Open
btford opened this issue Jul 9, 2015 · 1 comment
Open

RFC: Improving hints related to $parse #102

btford opened this issue Jul 9, 2015 · 1 comment

Comments

@btford
Copy link
Contributor

btford commented Jul 9, 2015

Problem

Parsers are hard.

Current solution

Decorate $parse and use regexes to do naive checks on expressions.

Ideal solution

Regexes aren't powerful enough. Instead, we should replace the implementation of $parse with our own implementation that both logs helpful information and also does proper parsing. This is challenging because we'd possibly have to support a debug version of $parse for each version of Angular to ensure that we preserve existing behavior.

@SomeKittens
Copy link
Member

Another thing to note is that we don't want to be throwing these hints every digest cycle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants