Re:Sp.h is the standard library that C deserves
by x0re4x on Saturday May 23, 2026 @04:20PM
(#48251085)
I suggest using a slightly different array operator syntax for fat pointer arrays: "char a[|..|]" instead of just "char a[..]" to make them visually distinct and indicate that element access has additional bounds check. (syntax inspired by ocaml)
[ Parent
| on HN ]
Re:Sp.h is the standard library that C deserves
by WalterBright on Saturday May 23, 2026 @04:27PM
(#48251141)
Thank you for the idea! I have no experience with Ocaml, so have no opinion on it. My experience is the simpler the syntax, the more people will use it.