Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"!

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Adam D. Ruppe
On Wed, Oct 21, 2009 at 05:05:04PM -0500, AJ wrote: > Why not eliminate the requirement for semicolon statement terminators > (unless there are multiple statements per line)? Less typing is "more"! It looks wrong, breaks habit, opens up bizarre parsing corner cases, and makes error messages ugli

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread BCS
Hello aJ, Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! For the same reason error correction bits are not removed from transmission lines; that is because the redundancy has some very nice effects

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread bearophile
>Why not eliminate the requirement for semicolon statement terminators (unless >there are multiple statements per line)?< Probably mostly because both some part of D language, some part of the mind of D developers, and some of the D programmers are "old school" and like to do things as they wer

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread BCS
Hello bearophile, opens up bizarre parsing corner cases, and makes error messages uglier. I have yet to see a proof of this. Just off hand for parsing issues: - it allows long code lines to be folded - it acts as a bug check on reformat: origonal code MyType t; // result of -t and opSub_r

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Adam D. Ruppe" wrote in message news:mailman.222.1256163114.20261.digitalmar...@puremagic.com... > On Wed, Oct 21, 2009 at 05:05:04PM -0500, AJ wrote: >> Why not eliminate the requirement for semicolon statement terminators >> (unless there are multiple statements per line)? Less typing is "mor

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread language_fan
Wed, 21 Oct 2009 18:29:37 -0400, bearophile thusly wrote: >>Why not eliminate the requirement for semicolon statement terminators >>(unless there are multiple statements per line)?< > > Probably mostly because both some part of D language, some part of the > mind of D developers, and some of the

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Steven Schveighoffer
On Wed, 21 Oct 2009 18:05:04 -0400, AJ wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! It has been said in the past that having semicolons makes parsing easier. I don't know how true this i

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Ary Borenszweig
Adam D. Ruppe wrote: On Wed, Oct 21, 2009 at 05:05:04PM -0500, AJ wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! It looks wrong, breaks habit, opens up bizarre parsing corner cases, and makes

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread bearophile
BCS: > - it allows long code lines to be folded This is not a problem, when you have optional semicolons, you add some syntax to fold long lines. Python uses \ Mathematica uses \\ and so on. Languages like Scala, Boo, Genie, etc seem able to survive. > - it acts as a bug check on reformat: >

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Ary Borenszweig
BCS wrote: Hello bearophile, opens up bizarre parsing corner cases, and makes error messages uglier. I have yet to see a proof of this. Just off hand for parsing issues: - it allows long code lines to be folded If you don't have semicolons this is also true, for example a = somefunc( fi

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread bearophile
language_fan: > It will not suffice that you prove them wrong.< Usually I am not able to prove things, I mostly just give suggestions. >The development model is too stagnant.< D is now quite alive, Andrei seems interested in changing something basic of D every day :-) Bye, bearophile

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread BCS
Hello bearophile, BCS: - it allows long code lines to be folded This is not a problem, when you have optional semicolons, you add some syntax to fold long lines. Python uses \ Mathematica uses \\ and so on. Languages like Scala, Boo, Genie, etc seem able to survive. The only one of those i

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Bill Baxter
On Wed, Oct 21, 2009 at 4:07 PM, BCS wrote: > Hello bearophile, > >> BCS: >> >>> - it allows long code lines to be folded >>> >> This is not a problem, when you have optional semicolons, you add some >> syntax to fold long lines. Python uses \ Mathematica uses \\ and so >> on. Languages like Scala

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Walter Bright
AJ wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! Because semicolons add redundancy which helps diagnose and isolate common programming errors.

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread BCS
Hello Ary, BCS wrote: Hello bearophile, opens up bizarre parsing corner cases, and makes error messages uglier. I have yet to see a proof of this. Just off hand for parsing issues: - it allows long code lines to be folded If you don't have semicolons this is also true, for example a =

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Walter Bright
language_fan wrote: Relax, bearophile. It seems there are some things you cannot change in this world. It will not suffice that you prove them wrong. I think I'll just give up on D. The development model is too stagnant. The author refuses to learn from "new" languages like Python or C#, or old

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Ary Borenszweig" wrote in message news:hbo40c$2rd...@digitalmars.com... > BCS wrote: >> Hello bearophile, >> opens up bizarre parsing corner cases, and makes error messages uglier. >>> I have yet to see a proof of this. >>> >> >> Just off hand for parsing issues: >> >> - it allows lon

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Steven Schveighoffer" wrote in message news:op.u159p8uaeav...@localhost.localdomain... > On Wed, 21 Oct 2009 18:05:04 -0400, AJ wrote: > >> Why not eliminate the requirement for semicolon statement terminators >> (unless there are multiple statements per line)? Less typing is "more"! > > It ha

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Adam D. Ruppe
On Wed, Oct 21, 2009 at 06:53:27PM -0500, AJ wrote: > Well it's more than "less typing". The biggest boon is time to comprehend > (the mind can parse less symbols faster). o rly i find dat xtremly ulikly it seems 2 me dat symbols r actually very useful in figuring out what ends where but hey the

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Walter Bright
AJ wrote: Walter, do you write at all? If so, why not take a breather and write an article about this, given that you have direct experience in addition to opinion on the topic? :) I write an awful lot - blogs, documentation, articles, presentations, etc. The ; debate, though, is a very old a

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Adam D. Ruppe" wrote in message news:mailman.224.1256169777.20261.digitalmar...@puremagic.com... > On Wed, Oct 21, 2009 at 06:53:27PM -0500, AJ wrote: >> Well it's more than "less typing". The biggest boon is time to comprehend >> (the mind can parse less symbols faster). > > o rly i find dat x

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Adam D. Ruppe
On Wed, Oct 21, 2009 at 08:42:31PM -0500, AJ wrote: The OP was not about "symbols" It was specifically about semicolons as statement terminators on \ single-statement lines Your defending argument was Well its more than less typing

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Walter Bright" wrote in message news:hbo88h$1q...@digitalmars.com... > AJ wrote: >> Walter, do you write at all? If so, why not take a breather and write an >> article about this, given that you have direct experience in addition to >> opinion on the topic? :) > > I write an awful lot - blogs

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"AJ" wrote in message news:hbodvl$c1...@digitalmars.com... > > "Walter Bright" wrote in message > news:hbo88h$1q...@digitalmars.com... >> AJ wrote: >>> Walter, do you write at all? If so, why not take a breather and write an >>> article about this, given that you have direct experience in addi

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Walter Bright" wrote in message news:hbo546$2sn...@digitalmars.com... > AJ wrote: >> Why not eliminate the requirement for semicolon statement terminators >> (unless there are multiple statements per line)? Less typing is "more"! > > Because semicolons add redundancy which helps diagnose and i

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Steven Schveighoffer
On Wed, 21 Oct 2009 21:42:31 -0400, AJ wrote: Apparently it is NOT off-topic (someone else said: "hey, all you guys who don't want semicolons: find another language or create your own!"). While I wasn't proposing to change D, I wasn't NOT suggesting it, necessarily, for consideration in so

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Adam D. Ruppe" wrote in message news:mailman.227.1256176484.20261.digitalmar...@puremagic.com... > On Wed, Oct 21, 2009 at 08:42:31PM -0500, AJ wrote: > The OP was not about "symbols" > It was specifically about semicolons as statement terminators on \ > single-statement lines > Your defending

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Steven Schveighoffer" wrote in message news:op.u16ild2leav...@localhost.localdomain... > On Wed, 21 Oct 2009 21:42:31 -0400, AJ wrote: > >> Apparently it is NOT off-topic (someone else said: "hey, all you guys who >> don't want semicolons: find another language or create your own!"). >> While

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Steven Schveighoffer
On Wed, 21 Oct 2009 22:46:37 -0400, AJ wrote: "Steven Schveighoffer" wrote in message news:op.u16ild2leav...@localhost.localdomain... On Wed, 21 Oct 2009 21:42:31 -0400, AJ wrote: Apparently it is NOT off-topic (someone else said: "hey, all you guys who don't want semicolons: find anoth

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Adam D. Ruppe
On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wrote: > That's not D source code. Why do you keep trying to use English text as an > example? The logic behind all the arguments you make, except for one, should apply equally well to English as it does to D. Cons: 1. Makes source code less compr

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Christopher Wright
AJ wrote: "Walter Bright" wrote in message news:hbo88h$1q...@digitalmars.com... AJ wrote: Walter, do you write at all? If so, why not take a breather and write an article about this, given that you have direct experience in addition to opinion on the topic? :) I write an awful lot - blogs, do

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Rainer Deyke
Christopher Wright wrote: > This only leaves the possibility of removing semicolons entirely. This > would mandate newlines as separators instead. Then you'd need a > different character to negate newlines. The C/C++ crowd would leave at > this point, since that's just silly. (Though less typing.)

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Steven Schveighoffer" wrote in message news:op.u16lelraeav...@localhost.localdomain... > On Wed, 21 Oct 2009 22:46:37 -0400, AJ wrote: > >> >> "Steven Schveighoffer" wrote in message >> news:op.u16ild2leav...@localhost.localdomain... >>> On Wed, 21 Oct 2009 21:42:31 -0400, AJ wrote: >>>

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Simen Kjaeraas
On Thu, 22 Oct 2009 05:39:10 +0200, Rainer Deyke wrote: Christopher Wright wrote: This only leaves the possibility of removing semicolons entirely. This would mandate newlines as separators instead. Then you'd need a different character to negate newlines. The C/C++ crowd would leave at this

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Rainer Deyke
Simen Kjaeraas wrote: > On Thu, 22 Oct 2009 05:39:10 +0200, Rainer Deyke > wrote: >> Trivial solution: use indentation. If a line is more deeply indented >> than the previous line, it's a continuation of the previous statement. > > All spaces, I presume? :p Tabs wouldn't be a problem so long as

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic.com... > On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wrote: >> That's not D source code. Why do you keep trying to use English text as >> an >> example? > > The logic behind all the arguments you make,

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Steven Schveighoffer
On Wed, 21 Oct 2009 23:54:40 -0400, AJ wrote: "Steven Schveighoffer" wrote in message news:op.u16lelraeav...@localhost.localdomain... On Wed, 21 Oct 2009 22:46:37 -0400, AJ wrote: If you want to argue tired old arguments, Oh, you were arguing? About what? I just asked "Why?". And I

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Christopher Wright" wrote in message news:hboivs$l8...@digitalmars.com... > AJ wrote: >> "Walter Bright" wrote in message >> news:hbo88h$1q...@digitalmars.com... >>> AJ wrote: Walter, do you write at all? If so, why not take a breather and write an article about this, given that yo

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread Nick Sabalausky
"AJ" wrote in message news:hbo2up$2pb...@digitalmars.com... > > "Adam D. Ruppe" wrote in message > news:mailman.222.1256163114.20261.digitalmar...@puremagic.com... >> On Wed, Oct 21, 2009 at 05:05:04PM -0500, AJ wrote: >>> Why not eliminate the requirement for semicolon statement terminators >>>

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread KennyTM~
On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic.com... On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wrote: That's not D source code. Why do you keep trying to use English text as an example? The logic behind all the ar

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Nick Sabalausky" wrote in message news:hbop11$110...@digitalmars.com... > "AJ" wrote in message > news:hbo2up$2pb...@digitalmars.com... >> >> "Adam D. Ruppe" wrote in message >> news:mailman.222.1256163114.20261.digitalmar...@puremagic.com... >>> On Wed, Oct 21, 2009 at 05:05:04PM -0500, AJ

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"Steven Schveighoffer" wrote in message news:op.u16piilgeav...@localhost.localdomain... > On Wed, 21 Oct 2009 23:54:40 -0400, AJ wrote: > >> >> "Steven Schveighoffer" wrote in message >> news:op.u16lelraeav...@localhost.localdomain... >>> On Wed, 21 Oct 2009 22:46:37 -0400, AJ wrote: > >>> If

Re: Semicolons: mostly unnecessary?

2009-10-21 Thread AJ
"KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... > On Oct 22, 09 12:29, AJ wrote: >> "Adam D. Ruppe" wrote in message >> news:mailman.228.1256181155.20261.digitalmar...@puremagic.com... >>> On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wrote: That's not D source code. Why d

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Don
AJ wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! Please don't post crazy stuff like this. This proposal would break every line of D code ever written. YOU ARE WASTING YOUR TIME (and everyone

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Walter Bright
Adam D. Ruppe wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext Butthatsfairlyobviouslymuch

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Kagamin
bearophile Wrote: > Even "worse", someone may even implement such alternative D syntax, and the > sky will fall on your head: > http://delight.sourceforge.net/ import dlt io Printer class Main void main Printer stdout stdout write Hello World!\n lolol

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
Semicolons As Implicit Programming Language Statement Terminators (An Analysis in Process) Pros: 1. Makes parsing of certain (they need to be listed) constructs easier (how much?) (?). 2. Adds redundancy which helps diagnose and isolate (facilitates reporting of ) the following common pr

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"Walter Bright" wrote in message news:hbp2lc$1m2...@digitalmars.com... > Adam D. Ruppe wrote: > > Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly > doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus > aparsinganchorperiodsinasentencearentstrictlynecessarywecould > putone

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread bearophile
Don Wrote: > Please don't post crazy stuff like this. This proposal would break every > line of D code ever written. If semicolons become optional, the old code that uses them will keep working, because adding an extra semicolon isn't an error. Broken lines like: foo(x, y); a = [1, 2, 3]; c = [

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread bearophile
Walter Bright: > Adam D. Ruppe wrote: > > Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly > doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus > aparsinganchorperiodsinasentencearentstrictlynecessarywecould > putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"Don" wrote in message news:hbp00i$1d8...@digitalmars.com... > AJ wrote: >> Why not eliminate the requirement for semicolon statement terminators >> (unless there are multiple statements per line)? Less typing is "more"! > > Please don't post crazy stuff like this. This proposal It's not a pro

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Mike James
I say we should get rid of vowels - it worked for the ancient egyptians :-) > Next thing you know someone will propose eliminating braces and just > using whitespace to denote blocks. It's utter madness. Or get rid of all the visible chars and use Whitespace... http://compsoc.dur.ac.uk/whitespac

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"Mike James" wrote in message news:hbp7le$220...@digitalmars.com... >I say we should get rid of vowels - it worked for the ancient egyptians :-) > >> Next thing you know someone will propose eliminating braces and just >> using whitespace to denote blocks. It's utter madness. > > Or get rid of a

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic.com... On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wrote: That's not D

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Ary Borenszweig
AJ wrote: "Mike James" wrote in message news:hbp7le$220...@digitalmars.com... I say we should get rid of vowels - it worked for the ancient egyptians :-) Next thing you know someone will propose eliminating braces and just using whitespace to denote blocks. It's utter madness. Or get rid of

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"KennyTM~" wrote in message news:hbpa89$27s...@digitalmars.com... > On Oct 22, 09 13:57, AJ wrote: >> "KennyTM~" wrote in message >> news:hbopns$125...@digitalmars.com... >>> On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"Ary Borenszweig" wrote in message news:hbpau3$297...@digitalmars.com... > AJ wrote: >> "Mike James" wrote in message >> news:hbp7le$220...@digitalmars.com... >>> I say we should get rid of vowels - it worked for the ancient egyptians >>> :-) >>> Next thing you know someone will propose

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Nick Sabalausky
"bearophile" wrote in message news:hbp5qa$1te...@digitalmars.com... > Walter Bright: > >> Adam D. Ruppe wrote: >> >> Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly >> doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus >> aparsinganchorperiodsinasentencearentstrictlyneces

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Nick Sabalausky
"AJ" wrote in message news:hbpb1b$29u...@digitalmars.com... > > "KennyTM~" wrote in message > news:hbpa89$27s...@digitalmars.com... >> >> OK. >> >> struct S { int a } >> int a >> >> void main () { >> S s >> auto t = s >> .a = 1 // ambiguity: Note that .sth means global scope. >> } >

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Lars T. Kyllingstad
AJ wrote: "KennyTM~" wrote in message news:hbpa89$27s...@digitalmars.com... On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@pure

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread bearophile
Nick Sabalausky: > I'm already kicking myself for trying to jump into the middle of yet another > semicolon debate, but..."burden" of semicolons? Isn't that a bit overstated? > I suppose it depends on the person, but I find it to be every bit as > automatic as reaching for the Shift key when I

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Pelle Månsson
KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic.com... On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wro

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Kagamin
AJ Wrote: > Cons: > > 1. Makes most source code less comprehensible. That depends on what parser you have. If you're a basic addict, why you bother about C family language? > 2. Is redundant with the newline designator. Statements don't end at newline. > 3. Is more typing. Code reuse sa

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Ary Borenszweig
AJ wrote: "Ary Borenszweig" wrote in message news:hbpau3$297...@digitalmars.com... AJ wrote: "Mike James" wrote in message news:hbp7le$220...@digitalmars.com... I say we should get rid of vowels - it worked for the ancient egyptians :-) Next thing you know someone will propose eliminating

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Lars T. Kyllingstad
AJ wrote: Cons: 10. Allows one to write hard-to-see "do nothings" like: for(;;); That's not allowed in D, for that exact reason. You have to write for (;;) { } for a do-nothing loop. -Lars

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Danny Wilson
Op Thu, 22 Oct 2009 07:44:44 +0200 schreef AJ : Also, referring to your second struct example above, D never has semicolons directly after a closing curly-brace. Isn't that ironic! Kinda far fetched to call that ironic. The struct decleration was already ended by '}'. I don't end my

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic.com... On Wed,

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Ary Borenszweig
KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Pelle Månsson
KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.228.1256181155.20261.digitalmar...@puremagic

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 21:12, Ary Borenszweig wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Adam D. Ruppe
On Thu, Oct 22, 2009 at 12:46:50AM -0700, Walter Bright wrote: > (Fixed that for you!) hehehe :) -- Adam D. Ruppe http://arsdnet.net

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 21:17, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in message news:mailman.2

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Pelle Månsson
KennyTM~ wrote: On Oct 22, 09 21:17, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in messa

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Pelle Månsson
KennyTM~ wrote: On Oct 22, 09 21:12, Ary Borenszweig wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29, AJ wrote: "Adam D. Ruppe" wrote in mes

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 21:36, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 21:12, Ary Borenszweig wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 21:35, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 21:17, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... On Oct 22, 09 12:29

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Pelle Månsson
KennyTM~ wrote: On Oct 22, 09 21:36, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 21:12, Ary Borenszweig wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com...

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread KennyTM~
On Oct 22, 09 21:51, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 21:36, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 21:12, Ary Borenszweig wrote: KennyTM~ wrote: On Oct 22, 09 19:03, Pelle Månsson wrote: KennyTM~ wrote: On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in mess

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread bearophile
KennyTM~: Please people, let's edit emails a little, so you don't carry around 30 KB of useless text :-) > And if all you need is a > re-syntax-ized D with optional semicolon, there is already one here. > It's called Delight. In F# you have the "light" syntax, that you can activate with the #

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Bill Baxter
On Thu, Oct 22, 2009 at 9:44 AM, bearophile wrote: > KennyTM~: > > Please people, let's edit emails a little, so you don't carry around 30 KB of > useless text :-) > >> And if all you need is a >> re-syntax-ized D with optional semicolon, there is already one here. >> It's called Delight. > > In

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
BCS wrote: Hello bearophile, BCS: - it allows long code lines to be folded This is not a problem, when you have optional semicolons, you add some syntax to fold long lines. Python uses \ Mathematica uses \\ and so on. Languages like Scala, Boo, Genie, etc seem able to survive. The only on

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
Ary Borenszweig wrote: Adam D. Ruppe wrote: On Wed, Oct 21, 2009 at 05:05:04PM -0500, AJ wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! It looks wrong, breaks habit, opens up bizarre parsing

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
Adam D. Ruppe wrote: On Wed, Oct 21, 2009 at 09:25:34PM -0500, AJ wrote: That's not D source code. Why do you keep trying to use English text as an example? The logic behind all the arguments you make, except for one, should apply equally well to English as it does to D. Cons: 1. Makes so

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
Walter Bright wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext Butthatsfairlyobviouslymuch

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Denis Koroskin
On Thu, 22 Oct 2009 22:43:13 +0400, Jérôme M. Berger wrote: Walter Bright wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould putoneperlineorjustfigure

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"Lars T. Kyllingstad" wrote in message news:hbpcjk$2cl...@digitalmars.com... > AJ wrote: >> "KennyTM~" wrote in message >> news:hbpa89$27s...@digitalmars.com... >>> On Oct 22, 09 13:57, AJ wrote: "KennyTM~" wrote in message news:hbopns$125...@digitalmars.com... > On Oct 22, 09 1

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 language_fan wrote: > The more I think about it, the > more I realize this language is not for me. I apologize my arrogance. Bye. That's the best news I've heard since that last tedious whiner buggered off. I really hope it's true. - -- My enormous

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread grauzone
language_fan wrote: Wed, 21 Oct 2009 18:29:37 -0400, bearophile thusly wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)?< Probably mostly because both some part of D language, some part of the mind of D developers, and

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
Denis Koroskin wrote: On Thu, 22 Oct 2009 22:43:13 +0400, Jérôme M. Berger wrote: Walter Bright wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould put

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Ali Cehreli
AJ Wrote: > Why not eliminate the requirement for semicolon statement terminators > (unless there are multiple statements per line)? Less typing is "more"! A number of times in this thread, you claimed that you were not proposing anything but merely asking "Why?". You may have very well inten

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread AJ
"Ali Cehreli" wrote in message news:hbqcvd$1ku...@digitalmars.com... > AJ Wrote: > >> Why not eliminate the requirement for semicolon statement terminators >> (unless there are multiple statements per line)? Less typing is "more"! > > A number of times in this thread, you claimed that you were n

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Adam D. Ruppe
On Thu, Oct 22, 2009 at 08:33:44PM +0200, "Jérôme M. Berger" wrote: > OTOH, nobody sane argues that we should add extra punctuation > between words when there is already a space. So *your* logic fails > comparison too... The difference is that a semicolon in D isn't analogous to a space at

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Walter Bright
Jérôme M. Berger wrote: Walter Bright wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext Bu

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
Walter Bright wrote: Jérôme M. Berger wrote: Walter Bright wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould putoneperlineorjustfigureoutwheretheybelong

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Jérôme M. Berger
Adam D. Ruppe wrote: On Thu, Oct 22, 2009 at 08:33:44PM +0200, "Jérôme M. Berger" wrote: OTOH, nobody sane argues that we should add extra punctuation between words when there is already a space. So *your* logic fails comparison too... The difference is that a semicolon in D isn't analogous

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Nick Sabalausky
"AJ" wrote in message news:hbqaiq$1fn...@digitalmars.com... > > "Lars T. Kyllingstad" wrote in message > news:hbpcjk$2cl...@digitalmars.com... >> >> >> In D you use the dot like that to access globals, cf. the comment in >> KennyTM~s example. >> > > So much for attracting C++ users by not makin

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread bambo
Walter Bright schrieb: Adam D. Ruppe wrote: Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus aparsinganchorperiodsinasentencearentstrictlynecessarywecould putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext But

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread Walter Bright
AJ wrote: Why not eliminate the requirement for semicolon statement terminators (unless there are multiple statements per line)? Less typing is "more"! You'll find every argument and point of view on this here: http://www.reddit.com/r/programming/comments/9wlb7/proggitors_do_you_like_the_idea

Re: Semicolons: mostly unnecessary?

2009-10-22 Thread BCS
Hello Jérôme, BCS wrote: Hello bearophile, This is not a problem, when you have optional semicolons, you add some syntax to fold long lines. Python uses \ Mathematica uses \\ and so on. Languages like Scala, Boo, Genie, etc seem able to survive. The only one of those in common use is Pytho

  1   2   >