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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:13:30+00:00 2026-06-07T05:13:30+00:00

I am studying Programming Languages: Application and Interpretation and I can run the first

  • 0

I am studying “Programming Languages: Application and Interpretation” and I can run the first two chapters’ examples in DrRacket 5.2.1 after executing #lang plai. but when I typed the 3rd chapter’s first example as below:

(with (x 5) (+ x x))

I got the following error:

reference to an identifier before its definition: with

I did not find the definition of with in this book. Do I need a library?

  • 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-07T05:13:31+00:00Added an answer on June 7, 2026 at 5:13 am

    The with construct is not something that you use in your own programs — it’s something that exists in the language that you define instead. In other words, it’s something that you implement not something that you use. Note that the books always uses it with curly braces, {with {x ...} ...}, and that’s intended to avoid this exact confusion that you’re having — curly braces are always used in code that is in the language you implement, and round parentheses are used for your own implementation’s code.

    Note that defining your own with is simple in Racket, but it would be wrong, and is likely to get you more confused. Instead of trying to use it in Racket, you should just follow the book, and at the end of chapter 3 you will have a working interpreter for the WAE language — and then you’ll be able to use it to run WAE programs that use with.

    As a side note, if you’re looking for a Racket form that is similar to with, then look into let — the only difference is that let allows you to specify multiple bindings instead of just one.

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

Sidebar

Related Questions

After studying the basics of Linux Application Programming, the next step is to learn
I'm currently studying socket programming, i'm working on creating an application to use my
I'm studying programming language theory and I can't figure out a solid reason why
While studying different programming languages, I recently hit upon Icon programming language . It
hello i'm studying iOS programming i created a project, which is an empty application
I'm studying The C++ Programming Language from Bjarne Stroustrup and he talks about logical
I am studying More programming pearls (Addison-Wesley, 1988) by Bentley J. and am stumped
I'm studying for a programming interview in Java which may involve database access. Is
While studying for a Functional Programming exam, I came across the following questions from
While studying for a Functional Programming exam, I came across the following question from

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.