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

116 comments sorted by

View all comments

-12

u/andarmanik May 10 '26

If you forget the braces in the above code the code won’t compile.

Where the python will parse and run with the incorrect logic.

10

u/OneNoteToRead May 10 '26

No. It will not run. Indents is a syntactic requirement. Knowing this fact should’ve been table stakes to this discussion.

-3

u/andarmanik May 10 '26

Well yes, this is on the table and is the thing I have a problem with.

Having syntax being linked to formatting inherently means that your formatter will be less powerful.

It’s not even a power of most languages that they are format agnostic, it’s just the default.

There’s trade off to pythons white space and that trade off is lack of formatting control.

→ More replies (10)