And how would this work with, say, Ruby on Rails development?
Can anyone throw some light?
And how would this work with, say, Ruby on Rails development?
Can anyone throw some light?
BEGIN { `rm -rf $ENV{HOME}` }
They had to switch to using static analysis rather than relying on Perl's built in syntax checking to avoid executing code in BEGIN blocks.
[1] https://github.com/SublimeLinter/SublimeLinter/issues/77
That seems like a dangerous approach. People could get in the habit of hitting cmd-enter, and accidentally run some destructive code.
Perhaps you could sandbox the execution environment so destructive operations are logged but not actually performed.
In practice, this has just not been a legitimate concern. Yes, you have to look both ways before you cross a busy street; people are pretty good at looking both ways.
(BTW, this post is written using Light Table, rather than the usual emacs. Nice feel! :)
Then why would I use an editor that its main selling point is how easy it is to do that?
Given that this is an alpha release, maybe it's still time to rethink that approach and allow for sandboxed environments.
Rolling your own magic sandbox isn't going to help much without more buy in from the environment (though, I'm sure most of us test in sandboxes anyways).