*emacsgolf* / holes

Separation Agreement

Split each defvar into a bare declaration and a separate setq holding the value. Structural sexp commands shine here.

M-x emacsgolf-play RET separation-agreement RET 
(defvar mylsl-keywords
  '("break" "default" "do" "else" "for" "if" "return" "state" "while")
  "LSL keywords.")

(defvar mylsl-types
  '("float" "integer" "key" "list" "rotation" "string" "vector")
  "LSL types.")

(defvar mylsl-constants
  '("ACTIVE" "AGENT" "ALL_SIDES" "ATTACH_BACK" "DEBUG_CHANNEL")
  "LSL constants.")
-UU-:**--  start.txtAll L1
(defvar mylsl-keywords nil "LSL keywords.")
(setq mylsl-keywords '("break" "default" "do" "else" "for" "if" "return" "state" "while"))

(defvar mylsl-types nil "LSL types.")
(setq mylsl-types '("float" "integer" "key" "list" "rotation" "string" "vector"))

(defvar mylsl-constants nil "LSL constants.")
(setq mylsl-constants '("ACTIVE" "AGENT" "ALL_SIDES" "ATTACH_BACK" "DEBUG_CHANNEL"))
-UU-:%%--  target.txtAll L1

Leaderboard

#golferkeyswhen
No entries yet — be first.