Scott Richmond scott
  • Joined on 2023-07-29
scott pushed to main at twc/ludus 2024-06-21 19:28:51 +00:00
a30cbaebc6 at for strings, for real
7b56e90468 build
Compare 2 commits »
scott pushed to main at twc/ludus 2024-06-21 15:37:27 +00:00
e05043e375 fix nil pattern matching
scott commented on issue twc/ludus#85 2024-06-21 14:39:34 +00:00
home! should reset orientation, not just location

@matt points out that home! described is just goto! (0, 0). So let's get rid of reset! and home! should operate as described in the issue title.

scott commented on issue twc/ludus#70 2024-06-21 14:37:43 +00:00
Good-enough error reporting

We got good enough error reporting for computer class! They're still not great; parsing errors are a mess of off-by-one. But definitely they did what the needed to.

scott closed issue twc/ludus#70 2024-06-21 14:37:43 +00:00
Good-enough error reporting
scott commented on issue twc/ludus#86 2024-06-21 14:36:27 +00:00
Disallow shadowing?

Actually, the conversation leads us to think we should disallow shadowing.

One question is whether we allow shadowing of names bound in Prelude. The first thought is that yes, you can shadow…

scott commented on issue twc/ludus#93 2024-06-21 03:51:45 +00:00
Turtle graphics protocol

One quick question here is whether we want a "turtle graphics protocol" or a more general I/O protocol, which starts with turtle graphics. To wit:

{ "turtle_graphics": [["forward",
scott opened issue twc/ludus#93 2024-06-21 03:46:50 +00:00
Turtle graphics protocol
scott commented on issue twc/ludus#81 2024-06-21 03:30:05 +00:00
Turtle position should correctly report location in turtle coordinates

There is almost certainly a way to use p5 transformations to make this work, but I reckon the thing to do here, now that computer class is all over, is to stand up a turtle graphics protocol out…

scott commented on issue twc/ludus#85 2024-06-21 03:24:48 +00:00
home! should reset orientation, not just location

Is this right? I think there's probably a reason to have home!, reset!, and clear! turtle commands:

  • home! brings the turtle back to the origin
  • reset! brings the turtle back to…
scott commented on issue twc/ludus#87 2024-06-21 03:22:49 +00:00
Called keywords should work in do forms

The issue is that the interpreter uses call-fn and should actually use apply-synth-term in passing the previous result to the next term in a do form. In other words, do should be sugar for…

scott commented on issue twc/ludus#86 2024-06-21 02:58:47 +00:00
Disallow shadowing?

Is the correct?

Technically, what happens when a function body is a block?

Well, a block is a new scope. So when the function body is a new block, it's a child scope, with the parent scope…

scott commented on issue twc/ludus#88 2024-06-20 22:01:12 +00:00
Empty blocks should cause parsing or validation errors

Done in 705be69661

scott closed issue twc/ludus#88 2024-06-20 22:01:12 +00:00
Empty blocks should cause parsing or validation errors
scott pushed to main at twc/ludus 2024-06-20 22:00:58 +00:00
705be69661 validation error on empty blocks
scott commented on issue twc/ludus#89 2024-06-20 21:57:25 +00:00
Calling not a function should cause a panic

Done in 0363d5a091

scott closed issue twc/ludus#89 2024-06-20 21:57:25 +00:00
Calling not a function should cause a panic
scott pushed to main at twc/ludus 2024-06-20 21:56:43 +00:00
3b65092267 add clause for join with empty list and separator
0363d5a091 calling something other than a function causes a panic
887d192c8a 0.1.24
f0176548de build
Compare 4 commits »
scott opened issue twc/ludus#92 2024-06-20 21:50:32 +00:00
split should work with "" as splitter
scott opened issue twc/ludus#91 2024-06-20 21:48:07 +00:00
chars should give a list of chars in a string