Imagine you have the chance to create a coding language from scratch. What unique features or capabilities would you introduce, and how would it improve the programming experience
Follow the DEVteam for more awesome discussions and online camaraderie!
Top comments (8)
There isn't a "perfect" programming language, really. It all depends on user preferences. Some people like OOP. Some people like FP. Some people like Java purely because there's no async to deal with
IMO, the most powerful programming language would be Lisp. I don't think there's much to improve there, other than better developer tools, faster compilers, etc.
This is why the answer I didn't write was "kill everyone else so they can't tell me my language isn't perfect" ;)
I'd really like to try my hand at inventing a language, if only I had the time!
I'd probably make something like Erlang: a functional language optimised for parallel programming.
Here's my recipe for the perfect language.
end
keyword.I suppose in the realm of "perfection" I'm allowed to dream a little ( :
How about just using a language like Lojban? It's a constructed spoken language meant to produce unambiguous sentences.
Spin up a sufficiently powerful language model, collaboratively exchange sentences, and instead of code it gives you an executable. In other words, CompileGPT ^^
I think I'd take a lot of inspiration from the Raku Programming Language, and take out quite a few of the historical warts.
I think I'd just invent Idris with C-like delimiters instead of whitespace delimitation. At any rate I would definitely not support throwing runtime exceptions.
Rust if it had Go’s compiler speed, std library and a green thread/coroutine implementation in the std library and it also didn’t introduce so many new features so quickly.