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

Make vecs2 more gentle #2221

Open
daniel-pfeiffer opened this issue Mar 20, 2025 · 0 comments
Open

Make vecs2 more gentle #2221

daniel-pfeiffer opened this issue Mar 20, 2025 · 0 comments

Comments

@daniel-pfeiffer
Copy link

daniel-pfeiffer commented Mar 20, 2025

vec_map_example is a bit much! It is not pretty printed across multiple lines. The next function is more readable than this 1st contact with iter.

Also I would separate

// An anonymous function, called a closure, which we store in a variable.
let my_closure = |element| element + 1;

Not sure if it should be called a lambda, when it doesn’t even close over anything. That name would be more familiar to many. OTOH, lambda has been hijacked for something unrelated by cloud providers.

Also, Ctrl-clicking on the 1st error message, jumps straight to the 3rd function. This leap-frogs the intended learning curve.

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

No branches or pull requests

1 participant