Repository navigation
[doc-me/proposal] whyhy: iconicity #2722
Closed
goyalyashpal
started this conversation in
General
Replies: 1 comment 2 replies
|
hi @Kodiologist |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
the hylang manual page "Why Hy?" can be improved in #hy-versus-other-lisps section in regards to homoiconicity:
proposal
Like all Lisps, Hy is homoiconic. <addition> This means that all language constructs; be it calling functions, using operators (arithmetic, comparison, etc.), defining things (variables, functions, classes, etc.), etc. etc.; are written using same syntactic construct. This allows structured manipulation of code itself, i.e. code-as-data technique. For example in Hy, with hyrule's arrow/threading macros like
->, forms can be programatically moved to be within other expressions.</addition>
ItsHy's syntax is represented not with cons cells or with Python's basic data structures, but with simple subclasses of Python's basic data structures called models. ... (continued).defence of design: the above addition:
lang-constructs --written in--> syntactic-constructs --represented with--> data-structures
.references:
background & motivation
background
while starting with hylang, eventually i reached whyhy page and this hyperlink to wikipedia page:
i knew 'con cells' (from using a very minimal & basic lisp-like lang), but not 'homoiconic'; and 'data structures', but not 'model'; 'felt like a lot of new things. so, i clicked the homoiconic-hyperlink to wikipedia:
critique of the referred wikipedia page
one full para, still no tangible material to hold on to; going whirlwind by jumping to metaproperties of homoiconicity like "informality of property", 🙄 "applies to all prog-langs", & excuses with "no definition of property".
this feels very inapt to be the only detailing of homoiconicity in the introduction / pitch for the hylang.
All reactions