News for hackers. Stuff that matters.
Re:“There Is No List” by reikonomusha on Thursday October 13, 2022 @02:14PM (#33194514)
I fail to see why mutable cons cells has anything to do with the difficulty of implementing Lisp.

    @dataclass
    class Cons:
        car: Any
        cdr: Any
You can define a nice printer or reader for it if you want, but mutability doesn't seem to be a hindrance in implementation.
Re:“There Is No List” by sillysaurusx on Thursday October 13, 2022 @02:23PM (#33194592)
You can, but then none of the Python libraries that expect Python lists can use your Cons as a list.

I tried. It sucks. The conversion becomes a problem all over the place.

isinstance(Cons(nil, nil), list) will fail, for example.

I posted a more thorough answer here: https://news.ycombinator.com/item?id=33194570

Re:“There Is No List” by phoe-krk on Thursday October 13, 2022 @03:29PM (#33195428)
This isn't a case of Lisp being hard to implement, this is a case of trying to make your Lisp work with Python language idiosyncrasies. These two issues have close to nothing to do with one another.
Re:“There Is No List” by Turing_Machine on Thursday October 13, 2022 @04:37PM (#33196177)
Python...Python...Python...

I think I see where your problem actually is.