Why is separating class ind struct is bad?
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Sat Mar 26 01:51:56 PDT 2016
On 26 Mar 2016 9:05 am, "Dicebot via Digitalmars-d" <
digitalmars-d at puremagic.com> wrote:
>
> On Saturday, 26 March 2016 at 07:42:43 UTC, Jonathan M Davis wrote:
>>
>> So, while the separation between structs and classes definitely good for
D code in general
>
>
> I disagree with this statement. The very presence of utils like
`Rebindable` or `scoped` indicates this wasn't a very clean design choice,
not in a way it was implemented at least.
Isn't that more a slam at the "deprecations" that still have no compiler
enforcement 6 years down the line, and not directly related to class
storage itself?
I don't think Rebindable is a good example to show what is wrong with
classes. More in the direction of head(const).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160326/49e69c63/attachment.html>
More information about the Digitalmars-d
mailing list