convex icon indicating copy to clipboard operation
convex copied to clipboard

Cumulative ignore reader macros

Open helins opened this issue 4 years ago • 2 comments

Not top priority but Clojure allows to chain several #_. For instance, the following fails with the Convex Reader while the Clojure Reader would effectively ignore both forms:

#_ #_ :foo :bar

Sometimes useful.

helins avatar Aug 02 '21 12:08 helins

Hmmm the intention is to ignore both? Makes sense I guess if the inner ignore is considered as "nested".

mikera avatar Aug 03 '21 08:08 mikera

Yes, you can't "ignore ignoring", they have a cumulative effect. Since there are 2 #_ in the example, the next 2 forms afterwards should be ignored.

Subtle touch, granted, but sometimes useful during dev. Allows for quickly ignoring forms in a row.

helins avatar Aug 04 '21 12:08 helins