Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
throwaway2037
on April 7, 2023
|
parent
|
context
|
favorite
| on:
C Strings and my slow descent to madness
This is a very thoughtful post. Real question: Is the solution to avoid C strings entirely? Use something like a Pascal string that includes the length?
jiggawatts
on April 7, 2023
[–]
Yes. For the love of god, a thousand times yes. Every other language, even some of the "C-compatible" ones uses explicit-length strings.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: