Skip to main content
Tweeted twitter.com/StackCodeReview/status/998331777411362817
>.>
Link
Raystafarian
  • 7.3k
  • 11
  • 15

Handeling Handling things that seemingly *every* new writer of a language gets wrong

Source Link
Carcigenicate
  • 16.6k
  • 11
  • 7

Handeling things that seemingly *every* new writer of a language gets wrong

I've noticed that, for whatever reason, seemingly every new user of Clojure tries to use def to create local variables. I've noticed it here, and on Stack Overflow, so it seems very pervasive. It's a fairly serious error, (def creates unscoped globals), so it's something that pretty much must be covered.

This has led to many of my reviews opening with basically the same warning, and the same examples of why it's bad, and what should be used instead.

How should this be handled? Should I be writing the same thing over and over in every review? Should I really go to town on one review describing the behavior of def, then link future reviews to that?