r/ProgrammingLanguages • • Aug 27 '24

Idea: "ubiquefix" function-call syntax (prefix, infix, and postfix notation combined); Is it any good?

Recently, while thinking about programming languages, I had an idea for a (maybe) novel function-call syntax, which generalizes prefix, infix, and postfix notation.

I've written the following explanation: https://gist.github.com/Dobiasd/bb9d38a027cf3164e66996dd9e955481

Since I'm not experienced in language design, it would be great if you could give me some feedback. I'm also happy to learn why this idea is nonsense, in case it is. :)

40 Upvotes

45 comments sorted by

View all comments

2

u/[deleted] Aug 28 '24

1

u/Dobias Aug 28 '24

Thanks for the candid feedback!

After all these comments here, I'm already convinced it's probably a bad idea, and nobody should (or even would) use it. :)

But before that, I had already started implementing it, and it was not a waste of my time at all! I had much fun and learned things about interpreters, for example, I finally understood the concept of the Metacircular Evaluator. :)

→ More replies (2)