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

style: no extra any type parameter #429

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d-enk
Copy link

@d-enk d-enk commented Feb 21, 2024

Long lines are less long

One style with

lo/errors.go

Line 187 in 5777c5a

func Try6[T, R, S, Q, U any](callback func() (T, R, S, Q, U, error)) bool {

lo/func.go

Line 37 in 5777c5a

func Partial5[T1, T2, T3, T4, T5, T6, R any](f func(T1, T2, T3, T4, T5, T6) R, arg1 T1) func(T2, T3, T4, T5, T6) R {

In the doc signature in the official vscode extension are also omitted
image

I would omit it here too, how does it do vscode, but it's not necessary

lo/slice.go

Line 25 in 5777c5a

func Map[T any, R any](collection []T, iteratee func(item T, index int) R) []R {

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant