Fork me on GitHub
#vim
<
2017-04-24
>
markwoodhall19:04:57

Been working on not hammering the repl and editor with infinite expressions this evening. https://pbs.twimg.com/media/C-M5XW1XsAAaLy4.jpg:large

dominicm19:04:13

@markwoodhall how do you detect that?

markwoodhall19:04:44

It's not smart at all, in fact, it's pretty hopeless but was just an interesting idea to play with. I'm not sure if there is a way to detect it in the repl but this is just stopping any eval for known function invocations with no arguments. Anything outside of that known criteria would still cause issues.

markwoodhall19:04:55

I don't think there is actually a way to do it that is worthwhile.

dominicm19:04:10

You may want to bind print level whilst evaluating :)

markwoodhall20:04:58

Yeah, I think I did that somewhere before, can't remember why now?

markwoodhall20:04:48

Could I integrate and get lint as you type with your linting thing?

markwoodhall20:04:32

On second thoughts. Maybe not.