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

DaxBase#Uses_, DaxBase#Disuses_, Txn_, Proc_ may become unnecessary by allow function. #60

Open
sttk opened this issue Sep 7, 2023 · 0 comments
Assignees
Labels
on hold Put on hold and will deal with in the future

Comments

@sttk
Copy link
Owner

sttk commented Sep 7, 2023

The proposal of arrow function has been presented here: https://github.com/golang/go/issues/21498.
If this proposal will be accepted, some functions and methods will become unnecessary.

func (base * Daxbase) Uses_(name string, ds DaxSrc) errs.Err {
    return func() errs.Err {
        return base.Uses(name, ds)
    }
}
runner := base.Uses_(name, ds)

  ↓

runner := () => base.Uses(name, ds)
@sttk sttk added the on hold Put on hold and will deal with in the future label Sep 7, 2023
@sttk sttk self-assigned this Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold Put on hold and will deal with in the future
Projects
None yet
Development

No branches or pull requests

1 participant