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 (10)
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.
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 ^^
Here's my recipe for the perfect language.
end
keyword.I think I'd take a lot of inspiration from the Raku Programming Language, and take out quite a few of the historical warts.
A few times I created a imperfect coding language - it is 2 small script language for flash action script ( around - 2000 - macromedia times ). The first one is able to make a longer scripted animation where I can manage a animated tutorial for kids.
Other one is for Narnia Collectible Card Game program, to manage card special skill and whole game play, script language called: slash, and very specialized to card game play. Main favorite was: I don't need to rerun the program every time when I would like to develop something new, just enough to type a script in a console interface. So it is really speed up the whole development process.
But these specialized small script language is lead me to understand a different declarative programming solution in different languages. So that why think the Rust macro rules is a great platform to create some "language".
I was thinking about this yesterday. How about thinking about security when building the language? Both by blocking "legacy" issues (buffer / heap overflows, use after free, malloc etc. etc.) but also when one of these is attempted, an alert is fired?
Your language actually becomes a security product at runtime.
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.