[External] : Re: Question about circular references
Ron Pressler
ron.pressler at oracle.com
Tue Jul 4 01:03:54 UTC 2023
> On 4 Jul 2023, at 00:22, David Alayachew <davidalayachew at gmail.com> wrote:
>
>
> But what are your thoughts on my post? Do you think this lack of representability is a problem too?
>
I don’t see a lack of representability. Java’s records can represent tuples — the thing they are meant to represent.
To represent a potentially cyclic graph with tuples you can use the ordinary representation of edges, and if you want to represent a graph in a more OOPy/pointery way, i.e. not with tuples, use classes that aren’t tuples, which are also representable in Java (and you can also make them immutable if you like).
— Ron
More information about the amber-dev
mailing list