Skip to content

syntactic sugar for getters/setters #159

@iAndyHD3

Description

@iAndyHD3

since public fields are not allowed, this means one is forced to write setters and getters for every single member. Doing so is a lot of work, especially with structures with many fields.

Suggestion:
syntactig sugar for getters/setters, perhaps something similar to c#?

public class Person
{
    public string Name { get; set; }
    public int Age { get; set; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions