Skip to content

Instantly share code, notes, and snippets.

@peterwang
peterwang / my-macros.clj
Last active November 11, 2021 09:48
Clojure Macro-writing Macros step by step.
;;; Clojure Macro-writing Macros step by step.
(ns my.macros)
;; => nil
;;;;;;;; ns and vars
*ns*
;; => #namespace[my.macros]
(def x 3)
;; => #'my.macros/x
@didibus
didibus / clojure-right-tool.md
Last active February 3, 2025 02:38
When is Clojure "the right tool for the job"?

My answer to: https://www.reddit.com/r/Clojure/comments/pcwypb/us_engineers_love_to_say_the_right_tool_for_the/ which asked to know when and at what is Clojure "the right tool for the job"?

My take is that in general, the right tool for the job actually doesn't matter that much when it comes to programming language.

There are only a few cases where the options of tools that can do a sufficiently good job at the task become limited.

That's why they are called: General-purpose programming languages, because they can be used generally for most use cases without issues.

Let's look at some of the dimensions that make a difference and what I think of Clojure for them:

@lehoff
lehoff / extensions.el
Last active August 17, 2019 15:16
mu4e configuration layer
(defvar mu4e-pre-extensions
'(
mu4e
))
(defun mu4e/init-mu4e ()
(use-package mu4e
:init
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")