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

2023-10-26 Thread Salih Dincer via Digitalmars-d-announce
On Saturday, 7 October 2023 at 12:37:37 UTC, sighoya wrote: I disagree however in all binary types should be just boolean. I prefer machineState=State.On or State.Off than isMachineOn=true or false. This was finished possible: ```d import std; enum State : bool {  Off, On } void main() {

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

2023-10-26 Thread Walter Bright via Digitalmars-d-announce
On 10/26/2023 2:30 AM, John Colvin wrote: Good talk. Many very clever people would achieve more if they tried to understand why a v. experienced developer would care to spend so much time talking about what might appear to be such basic points. The key challenge: If this stuff was so

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

2023-10-26 Thread John Colvin via Digitalmars-d-announce
On Monday, 2 October 2023 at 17:28:19 UTC, Mike Parker wrote: It's been a long, long while since I published anything on the blog. I do intend to get pick it up again down the road, but Walter recently surprised me with plans of his own. He's taken the topic of his DConf '23 talk and derived a

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

2023-10-26 Thread Imperatorn via Digitalmars-d-announce
On Thursday, 26 October 2023 at 03:15:00 UTC, Walter Bright wrote: On 10/4/2023 12:50 PM, claptrap wrote: Yes he can do what he likes, nobody has the right to demand anything from him. But his position and experience and knowledge is such that him doing a talk on coding guidelines is