VitWW
VitWW
1) Alternative to new keyword `via` we could add `with` instead. 2) Backward compatibility: implicit rules (for `use`-less signatures) for Rust 2024 and Rust 2021 it is expected to be...
1) Freeze function is effective tool to prevent double initializing (for example, for custom allocators). 2) Freeze representation does not UB for types with "total" representation, when any value of...
As alternative we could have not magical field `b.enum#discriminant`, but magical "type"/"trait" `enum`: `enum::discriminant(&b)` ```rust let b = Enum::Tuple(true); assert_eq!(enum::discriminant(&b), 13); ```
Since GHC uses `compareLength :: [a] -> [b] -> Ordering` (since things with same type only are comparable) and `lengthSomething :: [a] -> Int -> Bool `, it is good...
Historical reason for how `max`/`min` is defined in Prelude is a Minimal-Pragma `{-# MINIMAL compare | ( a maxRight x y = if x a -> a -> a maxLeft...
It should be named `CARGO_TARGET_DIR_PARENT` since it acts as a parent for those target directories.
This is bit modified alternative: Instead of adding single "CARGO_TARGET_BASE_DIR", add "CARGO_TARGETS_DIRS", where masks are allowed ``` CARGO_TARGET_BASE_DIR=path/to/base // same as CARGO_TARGETS_DIRS=path/to/base/*/ ```
`UnsafeAliased` is not a good naming. `AlreadyBorrowed` / `ConsiderBorrowed` / `AssumeBorrowed` is much better name
`f64f64` is a bad name for type. Maybe `fxd64` (float extended double 64) is better. Having unified rule for naming is a benefit. For example, 1) it must starts with...
Alternative 8: several loaders ```rust #!/usr/bin/env cargo [dependencies] foo = "1.2.3" #!/usr/bin/rustc fn main() {} ```