Re:Six programming languages I’d like to see
by hetzenmat on Wednesday July 13, 2022 @01:08PM
(#32085586)
>> Everything is a Graph
>> Lisp: everything’s a list
Actually, the universal 'cons' cell data type of LISP (which is used to build lists) allows to represent graphs. Take, for example, Common Lisp. There are read-macros which make this possible: The expression #1=(hello . #1#) builds a circular list that only contains the symbol "hello" [1]. This example can be extended to build graphs.
Actually, the universal 'cons' cell data type of LISP (which is used to build lists) allows to represent graphs. Take, for example, Common Lisp. There are read-macros which make this possible: The expression #1=(hello . #1#) builds a circular list that only contains the symbol "hello" [1]. This example can be extended to build graphs.
[1]: https://letoverlambda.com/index.cl/guest/chap3.html#sec_5