3 ms·
I'm also struggling to see the big benefit. I guess if you are allowed multiple sharp variable references -- as apparently Mozilla's Javascript allows -- you c
by jcl 18y ago
I'm also struggling to see the big benefit. I guess if you are allowed multiple sharp variable references -- as apparently Mozilla's Javascript allows -- you can construct a directed graph in a single statement, including cycles. I don't see that being very useful outside of entering test cases, though.
- herdrick 18y agoGraphs are the new hashtable - this is a great feature. Much of the interesting things being done now are done with giant graph structures. BTW, it's so lame that PLT Scheme is going in the opposite direction. They had the same excellent notation for a long time, but now since they forbid list mutation* they are useless. (* Yes, I know you can explicitly use mutable lists, but they don't work with the huge list library, for example SRFI-1, and there's no literal syntax for them, so it's like using lists in a language that doesn't like lists. Useless.) Actually, I wonder if there's a better syntax for graph literals than this? That would be valuable.