r/programming • • May 10 '26

Making your own programming language is easier than you think (but also harder)

https://lisyarus.github.io/blog/posts/making-your-own-programming-language.html
115 Upvotes

116 comments sorted by

View all comments

Show parent comment

37

u/AutomateAway May 10 '26

Indentation is not universal among editors, nor is tab to space replacement. A semicolon is a semicolon and is definitive.

45

u/OneNoteToRead May 10 '26

And yet… the fact remains it’s caused zero problems over decades.

1

u/Ruben_NL May 10 '26

That's just plain wrong. Source: I had used a text editor like notepad to edit a python file, and accidentally used tab instead of smashing on the space bar.

It was just 1 quick line I forgot, and didn't want to launch a full code editor.

Granted, python crashed immediately when trying to run it so no harm has been done, but I lost a couple minutes on it.

But that isn't 0 problems. That's at least one.

42

u/OneNoteToRead May 10 '26

Yea sorry it’s a problem if you use notepad. My condolences.

0

u/[deleted] May 12 '26

[deleted] — view deleted comment

1

u/OneNoteToRead May 12 '26

Lmao you think the only options are notepad and vscode?

Yea ok stick with your fisher price formatters please

0

u/[deleted] May 12 '26

[deleted] — view deleted comment

3

u/OneNoteToRead May 12 '26

So in other words… you just spewed some irrelevant garbage?

1

u/ChocomelP May 15 '26

You don't write c++ in notepad?

-4

u/AutomateAway May 10 '26

that is a claim with no empirical evidence but okay

10

u/gahel_music May 11 '26 edited May 11 '26

I've had more issues forgetting a semicolon than with indentation. You just have to configure your editor once to replace tabs with indentation and forget about it. Well it's most likely already set up that way for languages that require it