4 ms·
Mun: A programming language empowering creation through iteration
- CyberDildonics 6y agoThere 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.
- Wodann 6y agoCould you elaborate on why that is a mistake? Just curious
- CyberDildonics 6y agoBecause 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.
- dang 6y agoRelated from the archive: Mun Programming Language - https://news.ycombinator.com/item?id=21172980 https://news.ycombinator.com/item?id=21172980 - Oct 2019 (81 comments)
- cheriot 6y agoI'd love to see a modern type system available as a Lua replacement. A couple things I didn't see skimming the docs: 1. Does it continue the billion dollar mistake (null)? 2. Does it allow type parameters so I can write a generic Map that works with any kind of keys and values?
- nerdponx 6y agoIf you're interested in "Lua with types", check out Teal aka "Typed Lua" aka "Tl": https://github.com/teal-language/tl https://github.com/teal-language/tl. It compiles to Lua and is available as a single-file Lua module.
- nicoburns 6y agoFrom my reading there is no null, and no generic types either.
- jasfi 6y agoTake a look at Nim, it's described as Python with types, but could be what you're looking for.