C, Fortran, and single-character strings
C, Fortran, and single-character strings
Posted Jun 25, 2019 16:41 UTC (Tue) by rgmoore (✭ supporter ✭, #75)In reply to: C, Fortran, and single-character strings by Cyberax
Parent article: C, Fortran, and single-character strings
Sure, but C was designed without such arrays. And a language with safe arrays won't be C.
No. A language with only safe arrays won't be C. C is supposed to provide access to low-level functions and that includes unsafe pointers and arrays. But C is also supposed to allow programmers to build higher-level abstractions, including things like safe arrays and strings, and there's excellent reason to use those safe arrays and strings in place of the unsafe alternatives when performance is not critical.