Groups
Groups
Sign in
Groups
Groups
Racket Users
Conversations
About
Send feedback
Help
typed mutable fields in structures.
21 views
Skip to first unread message
Hendrik Boom
unread,
Apr 11, 2020, 10:17:51 AM
4/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Racket Users
I noticed that in regular Racket, when defining a structure, it is
possible for each field to be mutable independent of the other fields.
In Typed Racke I find the choice only of making all the fields or none
of them mutable.
Is this correct, or have I missed something?
-- hendrik
Ben Greenman
unread,
Apr 12, 2020, 10:01:30 AM
4/12/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Racket Users
Yes, that's right.
I think TR could support this choice ... the typechecket
(tc-structs.rkt) seems to know about the per-field mutability that
comes from a struct info.
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
racket-users...@googlegroups.com
.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/racket-users/20200411141747.ijbhuadzsy5r56ge%40topoi.pooq.com
.
>
Reply all
Reply to author
Forward
0 new messages