Thread overview | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 21, 2014 Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Hi As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python? Thanks. |
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Larroy | On 03/21/2014 07:47 PM, Pedro Larroy wrote: > Hi > > As a newcomer to D, I wonder, how difficult would be and would it be > welcome by the D community to have D's syntax with significant > whitespace and without brackets more like python? > > > Thanks. http://delight.sourceforge.net/ |
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Larroy | Pedro Larroy: > As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python? You have to revive this project to port it to D2: http://delight.sourceforge.net/ Bye, bearophile |
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Larroy | On Friday, 21 March 2014 at 18:47:49 UTC, Pedro Larroy wrote:
> Hi
>
> As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python?
>
>
> Thanks.
Why not just learn the correct syntax instead of perpetuating ignorance? Python syntax is not modern. COBOL just needs to go away...
|
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Larroy | On Friday, 21 March 2014 at 18:47:49 UTC, Pedro Larroy wrote:
> As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python?
I don't think it would be really hard to do in the compiler, you could probably make it work by hacking up the lexer.
But I'm totally against it, Python has hideous syntax.
|
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frustrated | On Fri, 2014-03-21 at 18:55 +0000, Frustrated wrote: […] > Why not just learn the correct syntax instead of perpetuating ignorance? Python syntax is not modern. COBOL just needs to go away... D syntax is of course less modern than that of Python: Python syntax is 1980s, D syntax is rooted in C syntax which is 1970s. It is an error to equate the quality of a programming language with the age of the base syntax: D and Python are both good programming languages, different agreed. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Fri, 2014-03-21 at 19:13 +0000, Adam D. Ruppe wrote: […] > But I'm totally against it, Python has hideous syntax. I would leave D syntax as it is. Python syntax is not hideous, it is good; very Pythonic, unlike D. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On Friday, 21 March 2014 at 18:51:46 UTC, bearophile wrote: > Pedro Larroy: > >> As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python? > > You have to revive this project to port it to D2: > http://delight.sourceforge.net/ > > Bye, > bearophile It's already in progress: https://github.com/pplantinga/delight http://pplantinga.github.io/ |
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Larroy | On Friday, 21 March 2014 at 18:47:49 UTC, Pedro Larroy wrote:
> Hi
>
> As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python?
>
>
> Thanks.
I don't think it's so difficult but it will increase a lot of code. Also, I don't believe the community will like something this. I'm not sure how accepted is python to most of this C/C++ guys. I personally don't like python/ruby/perl syntax.
|
March 21, 2014 Re: Improve D's syntax to make it more python like | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Larroy | On Friday, 21 March 2014 at 18:47:49 UTC, Pedro Larroy wrote: > Hi > > As a newcomer to D, I wonder, how difficult would be and would it be welcome by the D community to have D's syntax with significant whitespace and without brackets more like python? > > > Thanks. What draws you to D, if not the syntax? If you're looking for a fast, Python-like language, and you don't mind dependence on the CPython runtime, I'd suggest looking into Cython (http://cython.org/). If you're interested in modern language features and expressive metaprogramming with a Python-like syntax, I'd recommend Julia (http://julialang.org/). You might also be interested in Dylan (https://opendylan.org/), though I don't know much about it. |
Copyright © 1999-2021 by the D Language Foundation