From daace78911f19e452acf09919015dd49c953a006 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sat, 8 Jan 2022 11:17:52 +0100 Subject: [PATCH] [zig/en] rephrasing the sentence on raw pointers. --- zig.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig.html.markdown b/zig.html.markdown index 3825e0b4..814f4bda 100644 --- a/zig.html.markdown +++ b/zig.html.markdown @@ -24,7 +24,7 @@ Prior knowledge of C is recommended. - Zig introduces namespaces. - Try and catch mechanism, which is both convenient, efficient and optional. - Most of the C undefined behaviors (UBs) are fixed. -- Raw pointers are safer to use and aren't nearly as used as before. +- Compared to C, raw pointers are safer to use and less likely to be needed. * The type system distinguishes between a pointer to a single value, or multiple values, etc. * Slices are preferred, which is a structure with a pointer and a runtime known size, which characterizes most uses of pointers in the first place. - Some arbitrary language limitations are removed. For example, enumerations, structures and unions can have functions.