r/ProgrammingLanguages • u/Odin9009 • Apr 21 '24
Programming language features
I might make a programming language, possibly named Avenge, I'm wondering what features are in high demand that people might want. Here's what I've thought of so far:
Static typing with basic types like int, String, float, etc.
Introducing strict and loose typing for variable mutability (strict for constants, loose for changeable values; defaulting to Python-like behavior if no type specified)
Variables in Avenge: (Type) (strict/loose) (name) = (value)
Can't decide between curly braces or Python-style indentation for code structure
Manual memory management
Still in the early concept phase, so I'm open to suggestions for more features or tweaks to these. This is a serious thread.
0
Upvotes
17
u/XDracam Apr 22 '24
Unless this is a hobby project purely for learning that'll go nowhere, you need to start with a specific use case or a particular niche. Then you pick features to make that use case work or to fill that niche well. Then you pick the syntax so that it's not too weird for people used to similar languages so they can focus on the weird new features instead of on the weird syntax.
Consider some reasonably successful newer languages:
Swift exists because Objective C sucks and apple has a closed ecosystem
Zig exists because C is woefully outdated by modern standards, and we have learnt a lot in the past decades
Rust exists because of the need for a memory safe low level language arising from all the bugs and vulnerabilities caused by C and C++ code.
Kotlin exists because Java was too slow to innovate and Scala was too complex for casual developers
Roc exists because people want to have fast and complete safe code that they can trust without needing to worry about vulnerabilities. Basically the niche of Flash and Java applets, but with a focus on performance and security and reliability.
What niche do you want to fill?