You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @e2. Would be great to see this implemented. The current syntax makes Guardfiles a bit difficult to get right at first sight. The biggest issues for me were having to deal with regexps, code repetition and some implicit behaviour.
It shouldn't be too difficult - the code here is in fact very basic. (Although I'm not sure if it still works!)
If you happen to create a PR for this sooner, I'll be happy to merge, test and release.
If you prefer, I can add this to the Guard GitHub group of projects and add you there as a maintainer.
(I'd like this to be available by default so that this new syntax can be used in all the examples - and plugins that want to default to this new syntax).
Let me know if you have any conditions/objections and how you'd like to be credited for this.
I wish I saw this earlier.
Did you ever ask to get this included in Guard before? It's a shame it didn't replace the current DSL years ago :(
The Guard "paradigm" is quite tricky to convey properly:
Ultimately I think the "dsl magic" hurts more than it helps, because Ruby is quite simple already and a DSL only obscures things.
So I'd personally move slightly towards OOP
Of course the old DSL would still have to be supported forever :(
Anyway, thanks for sharing! It's encouraging to know I'm not the only one with the same ideas ;)
The text was updated successfully, but these errors were encountered: