r/AskProgramming • • May 24 '26

Algorithms How does Homoiconicity works ?

Hi to everyone,

After graduating in economics, and using a lot of R, I wanted to improve my programming skills, and to understand it more conceptually.

So I choose SICP to start the journey, but as many of you might know, the book uses Lips.

The justification of the use of the language comes from its abstraction capacity as I understand, and with a characteristic named homoiconicity.

And this is where I can't get the concept properly, code and data keep the same "form" ? What do we mean

0 Upvotes

13 comments sorted by

View all comments

Show parent comment

2

u/hgcrl May 24 '26

really good example i thing im starting to get it

1

u/jibbit May 24 '26

the only thing i'd add is that if you try to think how you really would add other types to json you would find that you can't really do it, or it would become incredibly complex. and that is why you need js and json as two different things. but the point is that lisp is so simple that you don't have to do anything - it automatically is both js and json