Message ID | 20241213-rust-xarray-bindings-v13-0-8655164e624f@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | rust: xarray: Add a minimal abstraction for XArray | expand |
On Fri, Dec 13, 2024 at 9:02 PM Tamir Duberstein <tamird@gmail.com> wrote: > > Changes in v13: > - Replace `bool::then` with `if`. (Miguel Ojeda) > - Replace `match` with `let` + `if`. (Miguel Ojeda) Personally, I would also use the early return style in both of these, like in C. I think you may also omit the parenthesis in the first one. (No need for a new version just for this) Thanks! Cheers, Miguel
On Fri, Dec 13, 2024 at 4:31 PM Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> wrote: > > On Fri, Dec 13, 2024 at 9:02 PM Tamir Duberstein <tamird@gmail.com> wrote: > > > > Changes in v13: > > - Replace `bool::then` with `if`. (Miguel Ojeda) > > - Replace `match` with `let` + `if`. (Miguel Ojeda) > > Personally, I would also use the early return style in both of these, > like in C. My personal preference is to leave it as-is as the return keyword isn't used anywhere in this file at the moment. I don't mind you changing it if/when applying, though. > I think you may also omit the parenthesis in the first one. Oops, you're right.