https://issues.dlang.org/show_bug.cgi?id=6442
mhh changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #15 from wfunct...@hotmail.com 2011-08-06 23:39:13 PDT ---
Er, slight typo copy/pasting your own argument:
This:
... are that it's slightly cleaner because the comment tokens aren't there,
and that the compiler complains if you
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #14 from wfunct...@hotmail.com 2011-08-06 23:36:25 PDT ---
The _only_ things that this feature adds over using a comment are that it's
slightly cleaner because the comment tokens aren't there, and
the compiler complains if you
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #16 from Jonathan M Davis jmdavisp...@gmx.com 2011-08-07 00:00:41
PDT ---
const, immutable, shared etc. have a large effect on the semantics of a
program. The compiler gives you additional guarantees as a result. e.g.
immutable
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #17 from wfunct...@hotmail.com 2011-08-07 00:22:55 PDT ---
const, immutable, shared etc. have a large effect on the semantics of a
program. The compiler gives you additional guarantees as a result. e.g.
immutable variables
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #18 from Jonathan M Davis jmdavisp...@gmx.com 2011-08-07 00:39:42
PDT ---
And why would it matter that the function was ref instead of out? It's still
affecting the variable that's passed in either case. The fact that it's ref now
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #19 from wfunct...@hotmail.com 2011-08-07 00:45:04 PDT ---
The fact that it's ref now instead of out has no effect on the calling
function.
Yeah it does -- the caller now has to initialize it with something sensible
first.
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #20 from Jonathan M Davis jmdavisp...@gmx.com 2011-08-07 01:12:16
PDT ---
Well, I don't think that the feature adds enough of value to be worth adding to
the language. But it's not my decision. Discussion on the matter can help
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #21 from wfunct...@hotmail.com 2011-08-07 11:16:43 PDT ---
Hmm... /maybe/ I'll try implementing it myself, although I'm not at all
familiar with the source code. Let's see how it goes, I'll post here if I get
anywhere.
--
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #22 from bearophile_h...@eml.cc 2011-08-07 13:30:59 PDT ---
I have a related but alternative proposal; to ask only for the out at the
calling point, make it obligatory if you compile with -warning and optional
otherwise (for a long
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #23 from bearophile_h...@eml.cc 2011-08-07 13:42:58 PDT ---
See also:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=141999
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=6442
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #2 from wfunct...@hotmail.com 2011-08-06 08:55:09 PDT ---
Proof?
Idk, do you want me to find an example of something that actually broke because
of this?
I don't know too many languages that allow this (like you said, C# 4.0 just
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #3 from bearophile_h...@eml.cc 2011-08-06 11:05:05 PDT ---
(In reply to comment #2)
Proof?
Idk, do you want me to find an example of something that actually broke
because
of this?
I don't know too many languages that allow
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #4 from kenn...@gmail.com 2011-08-06 14:46:43 PDT ---
(In reply to comment #3)
(In reply to comment #2)
Proof?
Idk, do you want me to find an example of something that actually broke
because
of this?
I don't know
http://d.puremagic.com/issues/show_bug.cgi?id=6442
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #6 from wfunct...@hotmail.com 2011-08-06 15:41:18 PDT ---
This feature improves code readability, but in D you also have const ref
that
semantically-wise for the caller is not that different from a pass by value.
Const ref has
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #7 from Jonathan M Davis jmdavisp...@gmx.com 2011-08-06 15:56:17
PDT ---
At this point, changes to the core language are not going to be made without a
very good reason, so expect ideas (be they yours or someone else's) to have to
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #8 from wfunct...@hotmail.com 2011-08-06 16:14:57 PDT ---
At this point, changes to the core language are not going to be made without a
very good reason, so expect ideas (be they yours or someone else's) to have to
add something
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #9 from bearophile_h...@eml.cc 2011-08-06 17:03:11 PDT ---
John: It's pretty interesting how you always like the status quo
It's the way he is, everyone has the rights to be himself or herself. And ad
hominem attacks are out of
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #11 from bearophile_h...@eml.cc 2011-08-06 17:40:46 PDT ---
(In reply to comment #10)
OK, fine, you beat me 1 point out of 3.
This is not a competition or a game, it's a conversation :-)
What you have to do is find
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #12 from wfunct...@hotmail.com 2011-08-06 18:16:24 PDT ---
This is not a competition or a game, it's a conversation :-)
What you have to do is find justifications for adding ref/out at the calling
point, you don't have to find
http://d.puremagic.com/issues/show_bug.cgi?id=6442
--- Comment #13 from Jonathan M Davis jmdavisp...@gmx.com 2011-08-06 19:47:18
PDT ---
A feature needs to add real value to the language to be worth adding. I don't
see value in this proposal. Hence why I'm against it. It's as simple as that.
23 matches
Mail list logo