Skip to content

Declaring variables on the stack is not very user friendly #31

@klemensschindler

Description

@klemensschindler

Usability improvements

  • Scope is not checked. It is possible to call constructors from unrelated classes.
  • Changing the constructor can be done when selecting parantheses, but this is not very intuitive.
  • Constructor arguments are specified from right to left.
  • Comma cannot be used to add items as constructor arguments (only enter)
  • A transform from a local variable declaration would enable more natural typing
  • Currently need to specify the type as well as the specific constructor. It would be more natural to automatically re-bind to a matching constructor instead of manually specifying which constructor to use.

An idea to solve some of these issues is:
Since we know the type (the LHS) we may be able to match against the signatures of all constructors within that class. The list of arguments can be simply a list of expressions.
One issue with this solution however is that we also need to have proper references. (ctrl+click on the declaration should still bring us to a matching constructor)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions