Sujet : Re: OT: Programming Languages
De : blockedofcourse (at) *nospam* foo.invalid (Don Y)
Groupes : sci.electronics.designDate : 03. Nov 2024, 19:59:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vg8h5l$g3ao$1@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2
On 11/3/2024 8:30 AM, maitre Aliboron wrote:
Talking about structural "elegance" in my opinion (Common) LISP is one of the best. Data, structures, functions, even programs... everything is only atoms and lists.
Yes, but it is VERY hard for people to wrap their heads around.
Sort of like parsing a binary file -- there are no real
"identifying features" from which to get your bearings.
Lists are a great addition to a language but almost always
drag in the need for GC.
Folks often implement lists in other languages -- but, usually by
tainting the data type that is being listed. E.g., adding a
"next (previous)" element(s) to a struct seems "free". But,
implicitly changes the data type of the listed item.
E.g., how would you make a list of floats?
{ theFloat, *theNextFloat } is no longer a "float" but some
bastard data type. Adding a float to said list would mean
converting it to one of these bastards *before* prepending it.