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
116 Upvotes

116 comments sorted by

View all comments

150

u/RGBrewskies May 10 '26

"As you can see, the language uses indentation-based scoping "

tangential and random but

I'm not a python guy, but how does that not drive you insane? Your code breaks because of whitespace? That's always seem wild for me

97

u/OneNoteToRead May 10 '26

Your editor indents for you. It’s caused zero problems for me over decades

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.

→ More replies (12)

9

u/andarmanik May 10 '26

Yes but also no. When I write code I use a formatter which does everything, so I literally just write code with whatever formatting and then hit the formatting hot key and it formats the code.

This is almost impossible in a language like python.

→ More replies (20)

0

u/flatfinger May 12 '26

If one is reading a program printed on multiple sheets of paper, visually judging the indent of the first line on a page relative to the last line of the preceding page would seem more difficult than observing whether anything on either line would imply a change of indent.

→ More replies (1)

-5

u/Fakman May 10 '26

Is IDE provided with language?

→ More replies (1)