User avatar
pathetic piss kitten @kitten@elizabeth.cat
1mo
what's an S-expression
:de_s@lynxism.cat:1:neocat_heart@transfem.social:1
2
0
2
2

User avatar
freya therian :3 (it/its) @freyalikesgirls@transfem.social
1mo
@kitten /gen?
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1mo
@freyalikesgirls yes but not too much info
:neocat_heart@transfem.social:1
2
0
0
1
User avatar
freya therian :3 (it/its) @freyalikesgirls@transfem.social
1mo
WALL, sorry for not doing the topic justice, not good at explaining @kitten not sure how to describe so may be off, its essentially a way to declaratively represent tree of values through simple lists, not far off from an xml in a way i guess
something like
(val1 val2 (val3 val4 val5) (val6))
the interesting thing lisp then actually makes it so these lists can act as executable code
funny example:
(+ 1 (* 2 3)) (which you can treat as 1 + 2*3)
then you can treat these like lists in any other language, construct and append dynamically and eval them, big reason why lisps are metaprogramming machines
it isnt too far off from direct ast manipulation as well, lisp only language where i respect calling (eval x)
i have no idea if that was clear in any way...
1
0
1
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1mo
WALL, sorry for not doing the topic justice, not good at explaining @freyalikesgirls oh, I understand
:neocat_heart@transfem.social:1
0
0
0
1
User avatar
freya therian :3 (it/its) @freyalikesgirls@transfem.social
1mo
@kitten might have been a little excessive, au tism
if u wanna learn lisp (well, scheme) things i recommend this:
docs.scheme.org/schintro/
it did good for teaching me how to think in it at least
0
0
0
0
User avatar
Tóth Gábor Baltazár @tthbaltazar@chaos.social
1mo
@kitten
what if you put the function name as the first argument
0
0
0
0