Re:Mun: A programming language empowering creation through i...
by CyberDildonics on Thursday February 18, 2021 @02:41PM
(#26184467)
There are a lot of cool things here, but I think conflating a data structure with how it is allocated in memory is a huge mistake.
[ Parent
| on HN ]
Re:Mun: A programming language empowering creation through i...
by Wodann on Thursday February 18, 2021 @05:42PM
(#26186838)
Could you elaborate on why that is a mistake? Just curious
Re:Mun: A programming language empowering creation through i...
by CyberDildonics on Thursday February 18, 2021 @07:53PM
(#26188072)
Because how memory is allocated for a data structure is a separate decision from what data structure you want to use. When a variable is declared as a certain type, choosing where the memory is allocated makes sense, but to build it into the type itself is restricting the uses of it. It also raises questions about what happens when you want to copy something on the stack to an offset in an array of the same thing on the heap. Allocation should be completely separate from data structure declarations in my opinion.