Why not eliminate the requirement for semicolon statement terminators
(unless there are multiple statements per line)? Less typing is "more"!
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
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
>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
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
"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
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
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
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
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:
>
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
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
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
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
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.
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 =
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
"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
"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
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
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
"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
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
"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
"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
"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
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
"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
"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
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
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
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
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.)
"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:
>>>
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
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
"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,
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
"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
"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
>>>
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
"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
"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
"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
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
Adam D. Ruppe wrote:
Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
aparsinganchorperiodsinasentencearentstrictlynecessarywecould
putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext
Butthatsfairlyobviouslymuch
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
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
"Walter Bright" wrote in message
news:hbp2lc$1m2...@digitalmars.com...
> Adam D. Ruppe wrote:
>
> Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
> doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
> aparsinganchorperiodsinasentencearentstrictlynecessarywecould
> putone
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 = [
Walter Bright:
> Adam D. Ruppe wrote:
>
> Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
> doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
> aparsinganchorperiodsinasentencearentstrictlynecessarywecould
> putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext
"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
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
"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
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
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
"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
"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
"bearophile" wrote in message
news:hbp5qa$1te...@digitalmars.com...
> Walter Bright:
>
>> Adam D. Ruppe wrote:
>>
>> Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
>> doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
>> aparsinganchorperiodsinasentencearentstrictlyneces
"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.
>> }
>
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
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
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
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
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
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
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
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,
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
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
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
On Thu, Oct 22, 2009 at 12:46:50AM -0700, Walter Bright wrote:
> (Fixed that for you!)
hehehe :)
--
Adam D. Ruppe
http://arsdnet.net
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
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
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
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:
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
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...
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
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 #
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
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
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
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
Walter Bright wrote:
Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
aparsinganchorperiodsinasentencearentstrictlynecessarywecould
putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext
Butthatsfairlyobviouslymuch
On Thu, 22 Oct 2009 22:43:13 +0400, Jérôme M. Berger
wrote:
Walter Bright wrote:
Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
aparsinganchorperiodsinasentencearentstrictlynecessarywecould
putoneperlineorjustfigure
"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
-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
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
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
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
"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
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
Jérôme M. Berger wrote:
Walter Bright wrote:
Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
aparsinganchorperiodsinasentencearentstrictlynecessarywecould
putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext
Bu
Walter Bright wrote:
Jérôme M. Berger wrote:
Walter Bright wrote:
Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
aparsinganchorperiodsinasentencearentstrictlynecessarywecould
putoneperlineorjustfigureoutwheretheybelong
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
"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
Walter Bright schrieb:
Adam D. Ruppe wrote:
Ifthepointisntplainobviousfromtheabovefewersymbolsmostcertainly
doesNOTmeanalanguageisnecessarilyeasiertoparseSymbolsgiveus
aparsinganchorperiodsinasentencearentstrictlynecessarywecould
putoneperlineorjustfigureoutwheretheybelongbyparsingthecontext
But
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
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 - 100 of 129 matches
Mail list logo