News for hackers. Stuff that matters.
Re:Ask HN: What would be your “perfect” programming language? by hyperswine on Monday September 12, 2022 @09:59PM (#32819914)
Can you elaborate on the no higher order functions, and the no modules but namespaces part?
Re:Ask HN: What would be your “perfect” programming language? by alexmingoia on Tuesday September 13, 2022 @03:18AM (#32821502)
No higher order functions means that you cannot make a function that takes another function as input or returns a function as output. I would prefer a programming language to be simple, only allowing functions which transform finite input to finite output.

No modules / namespaced includes means that to include other code, you would write something like `include as Foo './other-source-code.file'` or `include as Bar 'github.com/foo/bar/some/source.file@commit`. All the names in the included file (functions, names of data, etc.) would be referenced by prefixing the namespace, like `Foo.baz` or `Bar.baz`. Combine that with the ability to include code via URL, and there would be need for a package manager or separate package manifest. Wherever you want to use the new version/code you simply update the include statement at the top of the file.