Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1898610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:47:11+00:00 2026-05-17T06:47:11+00:00

I never really thought about this until I was explaining some clojure code to

  • 0

I never really thought about this until I was explaining some clojure code to a coworker who wasn’t familiar with clojure. I was explaining let to him when he asked why you use a vector to declare the bindings rather than a list. I didn’t really have an answer for him. But the language does restrict you from using lists:

=> (let (x 1) x)
java.lang.IllegalArgumentException: let requires a vector for its binding (NO_SOURCE_FILE:0)

Why exactly is this?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:47:12+00:00Added an answer on May 17, 2026 at 6:47 am

    Mostly readability, I imagine. Whenever bindings are needed in Clojure, a vector is pretty consistently used. A lot of people agree that vectors for bindings make things flow better, and make it easier to discern what the bindings are and what the running code is.

    Just for fun:

    user=> (defmacro list-let [bindings & body] `(let ~(vec bindings) ~@body))
    #'user/list-let
    user=> (macroexpand-1 '(list-let (x 0) (println x)))
    (clojure.core/let [x 0] (println x))
    user=> (list-let (x 0 y 1) (println x y))
    0 1
    nil
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've never really thought about this, but it helps with some security of something
I have never really thought about this until today, but after searching the web
Here's an interesting question I never really thought about until I had a conversation
I've thought about this problem before but never got anywhere on it. I think
I've recently discovered, to my astonishment (having never really thought about it before), machine-sorting
I had never thought about this before, but lately I've been worried about something.
I've never really been poised with this question: But would it be a terrible
I never really dealt with NLP but had an idea about NER which should
This is probably a very easy question, but I never really did web... so
I encountered this FxCop rule before and wasn't really content with how to solve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.