zig/lib
Matthew Lugg c5383173a0
compiler: replace @Type with individual type-creating builtins
The new builtins are:
* `@EnumLiteral`
* `@Int`
* `@Fn`
* `@Pointer`
* `@Tuple`
* `@Enum`
* `@Union`
* `@Struct`

Their usage is documented in the language reference.

There is no `@Array` because arrays can be created like this:

    if (sentinel) |s| [n:s]T else [n]T

There is also no `@Float`. Instead, `std.meta.Float` can serve this use
case if necessary.

There is no `@ErrorSet` and intentionally no way to achieve this.
Likewise, there is intentionally no way to reify tuples with comptime
fields, or function types with comptime parameters. These decisions
simplify the Zig language specification, and moreover make Zig code more
readable by discouraging overly complex metaprogramming.

Co-authored-by: Ali Cheraghi <alichraghi@proton.me>
Resolves: #10710
2025-11-22 22:42:37 +00:00
..
build-web update deprecated ArrayListUnmanaged usage (#25958) 2025-11-20 14:46:23 -08:00
c compiler-rt: move strlen from libzigc to here 2025-08-30 06:36:41 +02:00
compiler aro: unbreak s390x 2025-11-21 06:28:19 +01:00
compiler_rt compiler_rt: fix and simplify additional Windows exports 2025-11-15 09:49:01 +00:00
docs update deprecated ArrayListUnmanaged usage (#25958) 2025-11-20 14:46:23 -08:00
include remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
init fix: fix typo in comment by removing repeated 'business' word 2025-08-24 23:00:17 +02:00
libc libc: rename any-macos-any to any-darwin-any 2025-11-14 19:19:00 +01:00
libcxx libcxx: use compiler's _LIBCPP_HAS_LIBRARY_ALIGNED_ALLOCATION when set 2025-11-14 02:02:59 +01:00
libcxxabi remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
libtsan remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
libunwind remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
std compiler: replace @Type with individual type-creating builtins 2025-11-22 22:42:37 +00:00
c.zig libc: use zig isnan and derivates for mingw 2025-08-27 03:58:32 +02:00
compiler_rt.zig compiler-rt: remove dead code 2025-11-12 16:00:16 +00:00
fuzzer.zig update deprecated ArrayListUnmanaged usage (#25958) 2025-11-20 14:46:23 -08:00
ubsan_rt.zig Coff: implement threadlocal variables 2025-10-10 22:47:47 -07:00
zig.h zig.h: drop dependency on deleted compiler_rt functions 2025-11-12 16:00:16 +00:00