# Handin with racket instead of teaching languages:

**URL:** <https://racket.discourse.group/t/handin-with-racket-instead-of-teaching-languages/3854>\
**Category:** General\
**Tags:** question\
**Created:** [July 16, 2025, 12:46am UTC](https://racket.discourse.group/t/handin-with-racket-instead-of-teaching-languages/3854 "2025-07-16T00:46:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jestarray](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jestarray/32/433_2.png) [@jestarray](https://racket.discourse.group/u/jestarray)\
**Post date:** [July 16, 2025, 12:46am UTC](https://racket.discourse.group/t/handin-with-racket-instead-of-teaching-languages/3854/1 "2025-07-16T00:46:16Z")

</div>

```scheme
(check: :language 'racket

        :requires '()
        :eval? #t
        :output (string-append (symbol->string ASSIGNMENT-NAME) ".rkt")
        :create-text? #t
        :textualize? #f ;;raises exception for submissions that are not all text
        :maxwidth #f
        :coverage? #f

        (!procedure string-first 1)

        (set-test-max-score! 2)

        (@test "1" "" (string-first "boo") "b" 1
        )

```

When I try to submit the following in handin

```scheme
#lang racket
(define (string-first x) x)

```

I get this error popup box

```scheme
submit error: Error in your code --
#(struct:object:text% ...):1:0: read-syntax: `#lang` not enabled
  possible reason: not allowed again inside a module that already starts `#lang`, or not enabled for interactive evaluation

```

 ![image](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/3/35dcb6cd0021909ff36939cc81e716c08684d8e7.png)

---

<div class="post-metadata">

**Author:** ![bremner](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bremner](https://racket.discourse.group/u/bremner)\
**Post date:** [July 16, 2025, 10:29am UTC](https://racket.discourse.group/t/handin-with-racket-instead-of-teaching-languages/3854/2 "2025-07-16T10:29:08Z")

</div>

Jestarray via Racket Discourse [notifications@racket.discoursemail.com](mailto:notifications@racket.discoursemail.com)  
writes:

> ```scheme
> (check: :language 'racket
> 
> ```

I have used

:language '(module racket/base)

before. Maybe it works with racket as well?
