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

Rename title to header #118

Open
epage opened this issue Apr 25, 2024 · 2 comments
Open

Rename title to header #118

epage opened this issue Apr 25, 2024 · 2 comments
Labels
C-enhancement Category: enhancement S-triage Status: This issue is waiting on initial triage

Comments

@epage
Copy link
Contributor

epage commented Apr 25, 2024

This is inspired by #114 where someone wanted to include a lot of details in the "title" but assumed they couldn't.

@epage epage added C-enhancement Category: enhancement S-triage Status: This issue is waiting on initial triage labels Apr 25, 2024
@epage
Copy link
Contributor Author

epage commented Apr 25, 2024

If we decided to do this, we can do it without a breaking change with the current API because we can add a new function and deprecate the old one.

@epage
Copy link
Contributor Author

epage commented Apr 25, 2024

Alternatively, from #114

It's much more intuitive for me when constructor methods are named after the thing they construct (unless they construct Self, in which case some variant of "new" or "from"). So I'd personally name that method "message" and call its parameter "header".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement S-triage Status: This issue is waiting on initial triage
Projects
None yet
Development

No branches or pull requests

1 participant