0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/doc
Mason Remaley e572063f92 Allow splatting to scalar types
This makes writing code that is generic over scalar and vector
types easier. In particular, this helps when multiplying a generic
argument by a constant, or passing a generic arugment alongside a
scalar value to a function or builtin such as `@mulAdd`.

This also has the side benefit of making the implicit splat for
some binary operations as suggested by @SpexGuy in #35376 simpler
to implement for inplace arithmetic operations.

part of #35376
History 2026-10-21 02:17:59 -07:00
..
langref Allow splatting to scalar types 2026-10-21 02:17:59 -07:00
build.zig.zon.md ability to label naked packages 2026-10-19 17:34:42 -07:00
langref.html.in Allow splatting to scalar types 2026-10-21 02:17:59 -07:00