by anlsh · 3y ago · 0 comments
Package local nicknames. The situation that libraries like Alexandria are in is really sad.
Nested namespacing/packages.
The ability to alias imports, like in Python.
In the same vein, most symbols in the spec should be moved into a standard library.
A general equality predicate which can be specialized by the user.
Just replace multiple-value-returns with structs, they don't add anything useful.
Standardize some variant of arrow macros.
Every form which introduces a binding should be able to take a (optional) type specifier. It'd be great if compilers could use this option to remove generic dispatch in certain compilation modes.
Oh yes they do! They allow to add a return value without modifying all the calling sites. Extremely useful.
algol languages array/stack with 'struct' abstract ('struc' abstract converted by compiler to ether parallel array(s) and/or array byte grouping per array ordinal index offset)
Lisp languages -> 2nd order logic (implicit nil/1 or many returns)
lisp is a tree / heap language where tree node is the 'implied' struct.
tree/heap much more flexible than fixed size array of strucs.
lisp approach to dectorators / generators disucssion. https://stackoverflow.com/questions/32956033/is-there-a-stra...
structs -> n * M; "m-expression" 1st element outside of () is the "memory index".
cons struc vs. cons lisp () is apples/oranages comparison.
if convert both the 'cons struc' and the cons lisp () to same byte vector/stack or equivalent byte tree/heap, then yes, both 'cons' functions are equivalent.
higher order equivalent of mealy state machine vs. moore state machine. [1]
side note: ( 1 - n ) vs (n * m) is context reference to ploting base 2 log(x).
(1 - n ) can never exceed 1.
N * M, relative to (1 - n) is unbounded.
=====
[1] : https://www.geeksforgeeks.org/difference-between-mealy-machi...
A similar thing happened in hardware with the HDMI spec.
The worst thing in programming languages is these insipid language committees that refuse to disband. If you look at C and C++, it's obvious the main thing they care about above all is their self-preservation: the ability to continue meeting and tinkering with languages that everyone else critically depends on being stable.
The goal of no technical committee should be its own self-preservation.