Jump to page: 1 27  
Page
Thread overview
Improve D's syntax to make it more python like
Mar 21, 2014
Pedro Larroy
Mar 21, 2014
Timon Gehr
Mar 21, 2014
bearophile
Mar 21, 2014
The Guest
Mar 21, 2014
bearophile
Mar 21, 2014
The Guest
Mar 21, 2014
Frustrated
Mar 21, 2014
Russel Winder
Mar 21, 2014
Frustrated
Mar 22, 2014
Timon Gehr
Mar 22, 2014
Russel Winder
Mar 22, 2014
Brian Rogoff
Mar 22, 2014
Paulo Pinto
Mar 22, 2014
Brian Rogoff
Mar 22, 2014
bearophile
Mar 22, 2014
Russel Winder
Mar 23, 2014
1100110
Mar 23, 2014
Timon Gehr
Mar 23, 2014
1100110
Mar 23, 2014
Nick Sabalausky
Mar 22, 2014
evansl
Mar 22, 2014
Brian Rogoff
Mar 22, 2014
Iain Buclaw
Mar 21, 2014
Adam D. Ruppe
Mar 21, 2014
Russel Winder
Mar 21, 2014
Asman01
Mar 21, 2014
Mason McGill
Mar 21, 2014
Paulo Pinto
Mar 21, 2014
Brian Rogoff
Mar 21, 2014
Brad Roberts
Mar 21, 2014
w0rp
Mar 21, 2014
Jonathan M Davis
Mar 21, 2014
H. S. Teoh
Mar 22, 2014
w0rp
Mar 22, 2014
H. S. Teoh
Mar 22, 2014
Walter Bright
Mar 22, 2014
H. S. Teoh
Mar 22, 2014
Steve Teale
Mar 23, 2014
1100110
Mar 23, 2014
Marco Leise
Mar 24, 2014
1100110
Mar 21, 2014
Ziad Hatahet
Mar 25, 2014
Chris
Mar 21, 2014
Jonathan M Davis
Mar 22, 2014
Russel Winder
Mar 22, 2014
David Nadlinger
Mar 22, 2014
Russel Winder
Mar 24, 2014
Nick Sabalausky
Mar 25, 2014
Nick Sabalausky
Mar 25, 2014
Rikki Cattermole
Mar 22, 2014
MattCoder
Mar 22, 2014
Adam D. Ruppe
Mar 23, 2014
Colden Cullen
Mar 23, 2014
bearophile
Mar 28, 2014
Colden Cullen
Mar 23, 2014
logicchains
Mar 23, 2014
1100110
Mar 24, 2014
Bienlein
Mar 30, 2014
Steve Teale
March 21, 2014
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
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
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
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
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
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
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
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
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
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.
« First   ‹ Prev
1 2 3 4 5 6 7