Skip to content

Redundant arguments in constructor of FuncApp class #241

Open
@viper-admin

Description

@viper-admin

Created by @fpoli on 2018-07-23 14:25
Last updated on 2019-05-14 08:55

When building a function application, the FuncApp class requires:

  • the name of the function,
  • the expression of the arguments,
  • the return type of the function, and
  • the formal arguments of the function's declaration.

The first two arguments make sense, but the last two look like a duplication of the declaration of the function. Isn't something that should already be accessible in the program with a lookup on the function name?

For comparison, the MethodCall class does not require to specify the formal arguments or formal returns of the method's declaration, but just:

  • the name of the method,
  • the expression of the arguments, and
  • the target variables that go on the lhs of the assignment.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions