tmalsburg / guess-language.el

Emacs minor mode that detects the language you're typing in. Automatically switches spell checker. Supports multiple languages per document.
115 stars 14 forks source link

Use destructuring in cl-loop variable assignments #28

Closed andersjohansson closed 4 years ago

andersjohansson commented 4 years ago

I believe this is a more idiomatic use. At least it is shorter in these cases.

I read through the code and was actually quite surprised by the for VAR = STATEMENT clauses, since I had learned from the manual that for VAR = is for iteration, but of course it works as iterating one time.

By the way, applied this on top of my other pull-request, since I believe you should pull that as well 😊.

tmalsburg commented 4 years ago

Gotta admit I'm not super familiar with the cl-loop idiom. Thanks!