dlang / project-ideas

Collection of impactful projects in the D ecosystem
36 stars 12 forks source link

Rework Property Functions #62

Open 12345swordy opened 4 years ago

12345swordy commented 4 years ago

Create a dip that reworks property functions in a way that it is useful such as allowing binary operators, unary operators, disallow parenthesis, etc. Similar to c# properties https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties

ntrel commented 3 years ago

Problems with @property: https://gist.github.com/JinShil/40db71a5e32fd29924e68863000e6de1

ntrel commented 3 years ago

Draft DIP on op= for properties: https://github.com/dlang/DIPs/pull/97