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

Recursion in user patches causes earth-shattering kaboom #185

Open
bgribble opened this issue Aug 25, 2014 · 1 comment
Open

Recursion in user patches causes earth-shattering kaboom #185

bgribble opened this issue Aug 25, 2014 · 1 comment
Labels

Comments

@bgribble
Copy link
Owner

Recursion should be detected at load or edit time and cause an error. It can't be meaningfully supported in mfp. Currently it's not all that hard to make a patch that will blow up the Python stack on creation by including itself.

C-s boom.mfp RET
p boom RET
C-s boom.mfp RET
C-f 
p boom RET

Any solution to this needs to also detect mutual recursion at depth, i.e. a -> b -> c -> a

What does this say about the metaphor of processors as function/method handlers? I think it's more like the problems of module inclusion in Python source...

@bgribble bgribble added this to the mfp 0.05 milestone Aug 25, 2014
@bgribble bgribble added the bug label Aug 25, 2014
@bgribble bgribble removed this from the mfp 0.05 milestone Sep 22, 2014
@bgribble
Copy link
Owner Author

Saving this for later. Still needs to be fixed though.

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

No branches or pull requests

1 participant