Using closure in function scope to make "real" private class members

forkit forkit at gmail.com
Wed Jun 8 10:26:43 UTC 2022


On Wednesday, 8 June 2022 at 07:54:11 UTC, Max Samukha wrote:
> On Wednesday, 8 June 2022 at 07:14:32 UTC, forkit wrote:
>
>>
>> Is that even a language? ;-)
>
> Haskell is The Language!

Well if Haskell can do it, why can't D?

"..and we can make fields private if we want. "

https://mmhaskell.com/blog/2019/1/7/why-haskell-i-simple-data-types



More information about the Digitalmars-d mailing list