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 8176189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:04:17+00:00 2026-06-06T23:04:17+00:00

I discovered that special forms can not be passed as arguments or saved in

  • 0

I discovered that special forms can not be passed as arguments or saved in variables, both in Clojure:

user=> (defn my-func 
         [op] 
         (op 1 2 3))
#'user/my-func
user=> (my-func +)
6
user=> (my-func if)
java.lang.Exception: Unable to resolve symbol: if in this context (NO_SOURCE_FILE:5)
user=> (def my-if if)
java.lang.Exception: Unable to resolve symbol: if in this context (NO_SOURCE_FILE:9)

and in Racket/Scheme:

> (define (my-func op)
    (op 1 2 3))
> (my-func +)
6
> (my-func if)
  if: bad syntax in: if
> (define my-if if)
  *if: bad syntax in: if

That’s cool, I’m fine with that, I know that I can just write a function to wrap a special form and then pass that function.

But I’d like to know why Lisps have this restriction, and what negative consequences allowing this would have. Are they any major dialects that do allow that?

  • 1 1 Answer
  • 0 Views
  • 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-06-06T23:04:18+00:00Added an answer on June 6, 2026 at 11:04 pm

    It makes evaluation more complicated and compilation hard.

    If you have a form (a b c), then you need to resolve at runtime the value of a and then apply it somehow to the forms b and c.

    The simpler model of a few limited number of special forms and otherwise strict evaluation is then gone.

    See also: FEXPR

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just discovered that truncate {table} statements are not caught by most database triggers.
I recently discovered that I can use lambdas to create simple event handlers. I
I've recently discovered that MB/s is technically equivalent to 8 million bits/s and not
I've discovered that php supports a special php://memory path to create a temporary memory
i discovered that a wxCriticalSection is not recursive ( does deadlock when a thread
A few quick searches discovered that I'm obviously not the first person to have
I've discovered that setcookie() function escapes special characters, such as quotes. I've solved this
I discovered that CGBitmapContextCreateImage() creates an image, which is not neccessarily always a mask
Having discovered that IE does not handle javascript onmouseout , I'm determined to use
I recently discovered that it is possible to write windows applications in php. Can

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.