Re:How Lisp Became God's Own Programming Language
by carapace on Tuesday October 16, 2018 @03:08PM
(#18232217)
> there is no functionality for manipulating code at run-time or interpretation-time
Sure there is: http://www.swi-prolog.org/pldoc/man?section=manipterm
Example:
?- foo(Bar, Baz) =.. List.
List = [foo, Bar, Baz].
And: ?- F =.. [foo, Bar, Baz].
F = foo(Bar, Baz).
Re:How Lisp Became God's Own Programming Language
by 3rdAccount on Tuesday October 16, 2018 @01:11PM
(#18231123)
No, I think just code is data is code right?
Also, I'm not sure macros are needed for a language which doesn't do compilation.
Prolog code is represented the same way as data, but (AFAIK) there is no functionality for manipulating code at run-time or interpretation-time. I believe allowing macros is a necessary condition for homoiconicism, if I'm right, then Prolog isn't it.