[Issue 18323] New: deprecate `void fun(this a)` (instead: typeof(this)) ; `var.init` (instead: typeof(var).init)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 28 08:35:05 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18323
Issue ID: 18323
Summary: deprecate `void fun(this a)` (instead: typeof(this)) ;
`var.init` (instead: typeof(var).init)
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
we should deprecate `void fun(this a)` (instead: void fun(typeof(this)a)) ;
likewise, we should deprecate `var.init` (instead: typeof(var).init)
more controversial: we may also want to deprecate `instance.static_methor();`
it's confusing and lax, and leads to behavior that confuses some users, see
[The daily D riddle]:
https://www.mail-archive.com/digitalmars-d@puremagic.com/msg230090.html
--
More information about the Digitalmars-d-bugs
mailing list