The Perfect Language is a Combination of Java and Python

What I’d choose from Java and Python to build my own programming language

Vinicius Monteiro
Level Up Coding
Published in
5 min readFeb 7, 2021

--

Photo by Kevin Ku from Pexels

Wouldn’t it be cool if we could easily select features to build our own programming language? Imagine when you buy a car or a computer, for example — you select a base model/something to start with, and then add or remove options. I work with Java for a few good years, and I like it — it’s not dead for sure (not for me at least). But I’d wish I could quickly start coding in the terminal, as you can do with Python. Am I asking for too much?

I don’t want to move to Python completely. Overall, I don’t want to switch languages for working with different domains. Perhaps I can build my own from scratch, including whatever I want. But it’s not the point. I’d like to have a generic template and pick and choose different features easily.

Without further ado, below are some of the things I’d like my perfect language to have. Inspired by Java and Python.

Quick to start coding

I love that of Python. You install Python (if not installed yet). You open the terminal, type python and voilá. You can start right away.

Others such as Ruby work in this fashion as well. Just type irb.

But with Java, no. Instead, you need to create a separate file, compile, then execute. What about having to create a “public static void main(String[] args)”, what?!

List comprehensions

It’s a simple and concise way of making lists. I really like this option in Python. It’s easier to read (to a certain extent). You can focus on what you want to do with the list without concerning about its…

--

--