Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section on Function type declarations to 'Functions' page #5901

Open
1 task
mmcdon20 opened this issue Jun 8, 2024 · 4 comments · May be fixed by #6037
Open
1 task

Add section on Function type declarations to 'Functions' page #5901

mmcdon20 opened this issue Jun 8, 2024 · 4 comments · May be fixed by #6037
Assignees
Labels
a.language Relates to the Dart language tour co.volunteer Community wants to work on this e1-hours Can complete in < 8 hours of normal, not dedicated, work fix.quality Needs improvement in copy quality from.page-issue Reported in a reader-filed concern p2-medium Necessary but not urgent concern. Resolve when possible. st.triage.ltw Indicates Lead Tech Writer has triaged

Comments

@mmcdon20
Copy link

mmcdon20 commented Jun 8, 2024

Page URL

https://dart.dev/language/functions/

Page source

https://github.com/dart-lang/site-www/tree/main/src/content/language/functions.md

Describe the problem

The functions page doesn't explain Function type declarations.

In contrast, the records page does explain record types for example.

Expected fix

Add some explanation about how to use Function type declarations. (Including defining return types, parameter types, etc).

It might also be worth mentioning Function types on the built-in types page.

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.
@mmcdon20 mmcdon20 added the from.page-issue Reported in a reader-filed concern label Jun 8, 2024
@RikinR
Copy link

RikinR commented Jun 14, 2024

If no one is working on it I would like to work on this issue

@atsansone atsansone added a.language Relates to the Dart language tour p2-medium Necessary but not urgent concern. Resolve when possible. e1-hours Can complete in < 8 hours of normal, not dedicated, work fix.quality Needs improvement in copy quality labels Jun 21, 2024
@atsansone atsansone changed the title [PAGE ISSUE]: 'Functions' Add section on Function type declarations Add section on Function type declarations to 'Functions' page Jun 21, 2024
@RikinR
Copy link

RikinR commented Jun 21, 2024

hey ! by types of functions we are talking about static , getter & setter , constructors , anonymous and lamda functions right ?

@mmcdon20
Copy link
Author

I was referring to the type declaration for a Function.

int add(int a, int b) => a + b;

int Function(int, int) f = add;

In the above code, f is the type int Function(int, int).

@RikinR RikinR mentioned this issue Jun 27, 2024
4 tasks
@RikinR
Copy link

RikinR commented Jun 27, 2024

Hey ! I have submitted the PR .

@atsansone atsansone added st.triage.ltw Indicates Lead Tech Writer has triaged co.volunteer Community wants to work on this labels Jul 12, 2024
@mmcdon20 mmcdon20 linked a pull request Aug 9, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.language Relates to the Dart language tour co.volunteer Community wants to work on this e1-hours Can complete in < 8 hours of normal, not dedicated, work fix.quality Needs improvement in copy quality from.page-issue Reported in a reader-filed concern p2-medium Necessary but not urgent concern. Resolve when possible. st.triage.ltw Indicates Lead Tech Writer has triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants