One use case for this is for other tools that watch for file changes (e.g. inotifywait). Another is for tools that look at file timestamps (e.g. make). Both of these kinds of tools usually only want to do work when the file really changes.
I've only just started learning Racket, so if I've done anything weird by conventions please let me know!
I didn't spot any automated tests for the raco.rkt file to add on to, and I'm not sure I'm confident enough yet to add a new test suite. But I did test this manually using an inotify-based tool and it seems to fix the issue I was seeing.
One use case for this is for other tools that watch for file changes (e.g.
inotifywait
). Another is for tools that look at file timestamps (e.g.make
). Both of these kinds of tools usually only want to do work when the file really changes.I've only just started learning Racket, so if I've done anything weird by conventions please let me know!
I didn't spot any automated tests for the
raco.rkt
file to add on to, and I'm not sure I'm confident enough yet to add a new test suite. But I did test this manually using an inotify-based tool and it seems to fix the issue I was seeing.