C-style vs. Python-style syntax: which one would you prefer for your next programming language?

https://news.ycombinator.com/item?id=397440
by mojuba • 18 years ago
13 68 18 years ago

I'm designing a new programming language with a few interesting features. I call it a "stream-oriented" language and it is supposed to be highly efficient by design, almost at the level of C/C++.

The spec is ready, I even started writing a compiler. Almost everything is decided, except one major thing: C-style syntax vs. Python-style.

I like both, to be honest. The first is familiar - well, painfully familiar. The second is incredibly clean and aesthetical, but can create purely syntactic obstacles to introducing important features, such like multi-line lambdas. In principle, the compiler can support both styles on per-file basis, if that makes any sense, but most likely it doesn't.

I'd be happy to hear your opinions. If you are a C/C++ programmer, would you consider a Python-style language as your next tool, provided it is as efficient as C? If you are a Python programmer, are you happy with the style? Is there anything that can be fixed or improved in it? Finally, if you are a Lisp, JavaScript or Ruby programmer, would you consider a Python-like language if it gave you some new possibilities?

(Lisp style is not considered, as this new language is not a dialect of Lisp and it doesn't unify code and data.)

Related Stories

Loading related stories...

Source preview

news.ycombinator.com