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

New Change Pattern Specification #63

Open
sedflix opened this issue May 9, 2019 · 0 comments
Open

New Change Pattern Specification #63

sedflix opened this issue May 9, 2019 · 0 comments

Comments

@sedflix
Copy link
Contributor

sedflix commented May 9, 2019

Can we make some sort of domain-specific language for specifying the changing pattern?

We can use some sort of modifiers to specify the actions. For example:

  • //: Move
  • +/-: Update
  • -: Remove
  • default or +: Add

Example specification 1

for(*) {   
	//a++; 
}

This specifies a change in which a for was added(irrespective of the conditions) and a++ was moved.

Example specification 1

+/-for(*) {
	// a++
}

This specifies a change in which a for was modified.

The main advantage of such an approach would be UX. I feel that this will make the process of specifying change pattern easier and hence improving the usability.

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

No branches or pull requests

1 participant