Auto-Move on#2411
Conversation
|
I'm sceptical if this is a good idea. It's easy to remove or comment out lines such that an exercise compiles, even though it is not yet solved. |
I mean, that's true for all rustlings, you can go through the whole thing commenting out the asserts. Whether it auto moves to the next exercise is orthogonal to that fact. You can do that with this feature or without this feature. If you wanted to solve that, you'd put the asserts in a different file from where the exercises were. For those that want to do the exercises properly, this streamlines the experience. |
|
I mean accidentally. If the auto-move is turned on and the exercise compiles accidentally, or because the user is trying something out by "cutting" non-compiling lines and pasting them somewhere else, rustlings would move on to the next exercise, which is not what the user wants. Getting back to the previous exercise is more tedious. I agree that we don't need to worry about people cheating at the exercises. |
|
So, you have to save the file; or at least the way I'm using rust you have to.. You'd do all the moving in the editor, then the saving of the file would be like the "submit" of the attempt. Rustlings only evaluates when the file is saved, not during the file edit. At least, it does for me, I don't know if other editors continually save all changes |
|
Closing because I agree with @senekor about accidential skipping. Another source of confusion: |
feature to allow rustlings to automatically move on to the next exercise, so the flow is not interrupted