https://github.com/clj-commons/infra/blob/main/.gitattributes may or may not be well known, but this makes *.bb files be recognised as Clojure by github.
So no more BlitzBasic for me.
Nice! I also found that this works locally (for both emacs and github): https://gist.github.com/borkdude/57984ca1df6c3cf8f302196cb37b0f43#file-grasp_read_string-clj-L2
But usually I use .clj
for bb scripts
because that's what it is
Do you consider a bb file with a shebang to also be a clojure file? Asking because Iām somewhat unsure myself.
I do. You can also invoke it with clojure the_file.clj
if you set up the deps correctly
Right, because #!
is a reader-macro comment-line
Right
But .bb is also fine, it's just more work getting the tooling to recognize it
For now I think I somewhat like the distinction.
Maybe the tooling can account for .bb eventually
https://www.ieugen.ro/posts/2020/2020-12-26-export-passwords-with-babashka/