Re: [racket-users] student produces absolutely bonkers environment lookup code

2021-05-13 Thread 'John Clements' via Racket Users
Yep, I think that’s probably on the money. I guess this is really a classic example of the problem with writing code using internet search. Many thanks! > On May 7, 2021, at 4:38 PM, Ben Greenman wrote: > > On 5/7/21, Shu-Hung You wrote: >> Not that I have any idea of what's going on, but

Re: [racket-users] student produces absolutely bonkers environment lookup code

2021-05-07 Thread Ben Greenman
On 5/7/21, Shu-Hung You wrote: > Not that I have any idea of what's going on, but interestingly, Typed > Racket's second ->* example has (1)(3)(4). The use of list* may be > possible if one follows the type (List* String Natural x) in the > example. > >

Re: [racket-users] student produces absolutely bonkers environment lookup code

2021-05-07 Thread Shu-Hung You
Not that I have any idea of what's going on, but interestingly, Typed Racket's second ->* example has (1)(3)(4). The use of list* may be possible if one follows the type (List* String Natural x) in the example.

[racket-users] student produces absolutely bonkers environment lookup code

2021-05-07 Thread 'John Clements' via Racket Users
Background: I teach a PL course, using Shriram’s PLAI. Many of the assignments require students to maintain an environment mapping symbols to values. Shriram illustrates a nice easy way to do this, as a list of two-element structures. You can also use an immutable hash. Fine. So I’m grading a