[Issue 18604] in parameter storage class should be deprecated

2020-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

Mathias LANG  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||pro.mathias.l...@gmail.com
 Resolution|--- |WONTFIX

--- Comment #8 from Mathias LANG  ---
`in` has been restored to be `scope const`, albeit with a flag, so WONTFIX.

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-30 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

--- Comment #7 from anonymous4  ---
Another possibility is -transition=in flag that will deprecate `in` on demand,
and after people remove usage of `in` storage class from their code, it can
start enforce `scope const` meaning.

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

Jonathan M Davis  changed:

   What|Removed |Added

 CC||issues.dl...@jmdavisprog.co
   ||m

--- Comment #6 from Jonathan M Davis  ---
Personally, I don't think that the in keyword on parameters should ever have
existed. Having a keyword essentially be an alias for another keyword just
creates confusion, and having it be an alias for _two_ keywords is even worse.
If someone means const, they should say const. If they mean const scope, they
should say const scope. Given the questions asked and discussions had over the
years, I think that it's fairly clear that there are plenty of folks who have
never understood what the deal with in is and how it relates to const. The fact
that it meant two keywords in principle and one in practice just made it worse.

That being said, so many folks liked the idea of in (I think mainly because
they conceptually like the idea of it being the counterpoint to out) that a
_lot_ of code uses in, and as such, if it were deprecated, a _lot_ of code
would have to be changed. So while ideally, I would love to see in deprecated,
in practice, I think that it would just break too much code to make sense, as
much as that sucks.

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

--- Comment #5 from anonymous4  ---
If one wants to remove `in` attribute the fix is rather simple 's/in/const/'

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

--- Comment #4 from anonymous4  ---
Also the reason why safe code receives breakage is because it's invalid, and
there should be no guarantee for invalid code to work.

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

--- Comment #3 from anonymous4  ---
(In reply to Seb from comment #0)
> `in` currently just means `const`
That antifeature was only sort of done for safe code, whatever you do, system
code shouldn't be affected. Though given how much breakage safe code received
lately, I see no reason to not enforce scope for `in` in dip1000 mode, I don't
think it can add noticeably more breakage, but postponing it will aggravate the
issue.

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

Adam D. Ruppe  changed:

   What|Removed |Added

 CC||destructiona...@gmail.com

--- Comment #2 from Adam D. Ruppe  ---
It never should have been changed from `scope const` in the first place. Anyone
who was misusing it is responsible for their own mistake - all written material
on the language, from spec to tutorials to books, have been clear from the
beginning about what it does and when you are supposed to use it. Their code
was already broken.

--


[Issue 18604] in parameter storage class should be deprecated

2018-03-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18604

--- Comment #1 from Seb  ---
https://github.com/dlang/dmd/pull/8021

--