Python-like tabs instead of curley brackets?
Chris Nicholson-Sauls
ibisbasenji at gmail.com
Fri Oct 27 06:27:39 PDT 2006
Charles Fox wrote:
> I've been following D for a few years now, and I'd like to suggest ditching
> the (now completely redundant) curley brackets from the C-like syntax and
> borrowing Python's use of tabs to replace them. I see no reason to keep the
> curley brackets now we have nice editors that know about (and can display) tab
> characters. The ideal programming language should have no redundancy, you
> shouldn't have to say anything twice, and at present we are still repearting
> ourselves with both curley brackets and indentation! What do you think?
I think it would be a big mistake, and quite possibly enough to turn me away from D
despite the years I have put into it as a user. Doing this, we would sacrifice
expressiveness, source portability, useful niche features such as anonymous scopes, and
enter the world of ambiguous nesting levels. Python and D are two different galaxies.
Python is not a systems language (technically, its interprative, and doesn't provide any
low-level functionality that I recall). Scope-by-indentation is a good choice in that
case, where the speed and blindness of parsing are paramount. It would be a massacre for D.
-- Chris Nicholson-Sauls
More information about the Digitalmars-d
mailing list