Re: implicit-context v0.0.1

2023-10-05 Thread Antonio via Digitalmars-d-announce
On Friday, 29 September 2023 at 08:33:56 UTC, Imperatorn wrote: On Thursday, 28 September 2023 at 23:28:02 UTC, Guillaume Piolat wrote: Hi, Ever had a bit of feature-envy about Odin's "context" feature [1]? It is something used to pass "contextual" parameters, like a logger, an allocator, to

Re: From the D Blog: Crafting Self-Evident Code in D

2023-10-05 Thread angel via Digitalmars-d-announce
I think if `class` is a reference type, it should've been explicit: ```sh class C { ... } auto obj = new C(); void func(ref C obj) { ... } ``` I don't mind if it does not compile without the `ref`, but it should be on the table - WYSIWYG.

BeerConf Japan

2023-10-05 Thread WebFreak001 via Digitalmars-d-announce
hi, if you are in Tokyo right now, we are doing a small meetup this Sunday (2023-10-08) We are still planning the exact details where and when to go in the dlang-jp slack, probably evening at some cafe somewhere around Shibuya. I will post updates on exact locations here.

Re: From the D Blog: Crafting Self-Evident Code in D

2023-10-05 Thread claptrap via Digitalmars-d-announce
On Thursday, 5 October 2023 at 08:46:50 UTC, Dom DiSc wrote: On Thursday, 5 October 2023 at 00:53:45 UTC, claptrap wrote: [...] he is has more interesting things to talk about than whether "enum { yes, no }" is a good idea or not. His point here was not that having an enum with values for yes

Re: From the D Blog: Crafting Self-Evident Code in D

2023-10-05 Thread Dom DiSc via Digitalmars-d-announce
On Thursday, 5 October 2023 at 00:53:45 UTC, claptrap wrote: [...] he is has more interesting things to talk about than whether "enum { yes, no }" is a good idea or not. His point here was not that having an enum with values for yes and no is a bad idea. The bad idea is assigning yes the