Skip to content

Short notation for function types #1349

Open
@chriseth

Description

@chriseth

Function types require quite a lot of keystrokes. The obvious shorthand is
(uint) -> (uint), but our function types are more complicated than javascript's - we also need to specify internal / external, constant, payable (view, pure). Is there a good notation for these?

We could distinguish internal and external by -> and => and then something like this:

(uint) [pure,payable]=> (uint)

Metadata

Metadata

Assignees

No one assigned

    Labels

    high impactChanges are very prominent and affect users or the project in a major way.language design :rage4:Any changes to the language, e.g. new featureslow effortThere is not much implementation work to be done. The task is very easy or tiny.must haveSomething we consider an essential part of Solidity 1.0.needs designThe proposal is too vague to be implemented right awayroadmap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions