Fork me on GitHub
#off-topic
<
2024-04-05
>
yuhan11:04:47

So today I made the accidental discovery that backward _# discard macros are just regular symbols... meaning you can use them as extra --decoration-- around your discarded expressions by stacking up the real ones ๐Ÿ™ƒ

(vector :head #_#_ discarded _#_# :tail)   ;; => [:head :tail]

wow 3
yuhan11:04:37

Not quite sure how to feel about this

(shuffle [:wow :such 
          #_#_#_>>>> AESTHETIC <<<<_#_#_# 
          :potential])
;; =>
;; [:potential :wow :such]

p-himik12:04:11

There are Rich comments, and then there are #_#_ RICH _#_# comments.

๐Ÿ™Œ 2
jpmonettas12:04:12

haha nice, but for it to help with symmetry OCD you will have to convince syntax highlighters to support it first

Alex Miller (Clojure team)12:04:38

Symbols ending in # are reserved for Clojure (as in gensyms), so donโ€™t do that

Alex Miller (Clojure team)12:04:59

Actually, the language I was remembering was about : so nvm, go nuts!

๐Ÿ˜‚ 3
yuhan15:04:23

#_#_#::{#::{#::{#::{#_ OFFICIALLY ENDORSED _#}::#}::#}::#}::#_#_#
can't wait to make use of this responsibly :)

๐Ÿ˜‚ 6