Bump to Rust 1.30, add macros to preludes, and switch macro_use to use#517
Bump to Rust 1.30, add macros to preludes, and switch macro_use to use#517bluss merged 7 commits intorust-ndarray:masterfrom
Conversation
|
Oh it's beautiful. And those things now share the same namespace (or maybe equally named things are punned and both |
|
Yeah, this is so much cleaner than the old Macros have a separate namespace, and all equally named things are imported when |
|
The short macro name of |
|
I just added another commit that makes it possible to use
Yeah, I think it'll be fine because (1) macros are in a separate namespace from variables/functions, (2) a short name like |
Also remove `macro_use` of `array`, `azip`, `s`, and `stack`, and replace with normal `use` statements.
This makes it possible to use `ndarray::s![]` and `ndarray::azip!()` without importing them with `macro_use` or `use`.
26b925c to
beec050
Compare
|
Towards the future, breaking change season is here |
This PR adds the
array,azip,s, andpar_azipmacros to their respective crates' preludes. Where possible, it also replacesmacro_usewith normalusestatements.This requires Rust 1.30.