3 ms·
I think he's referring to defining existing graphs in the code. Because of the relationship between code and data in lisp, you don't need to define graph objec
by rikthevik 16y ago
I think he's referring to defining existing graphs in the code. Because of the relationship between code and data in lisp, you don't need to define graph objects and connect them all at run-time, which you'd have to in Java.
It's like who in Python you could say
mydict = { "a":1, "b":2 }
as opposed to
HashMap d = new HashMap();
d.put("a", 1);
d.put("b", 2);
- ww520 16y agoIf that's the case, why does one need to use a graph library to construct simple graph data structure? It looks like JGraphIt is used as a strawman argument to exaggerate the difference. BTW, Java does support some notion of literal construction using array. e.g. new Object[] {"abc", "xyz", 1, 2, 3, new Integer[] {4, 5, 6}, new Node(2)};