Hacker News new | ask | show | jobs
by pjmlp 12 days ago
Specially coming from a language that after 50 years still doesn't have slices to fix their strings and arrays, something that Dennis Ritchie proposed when he still cared about the standard.
1 comments

I use slices in C, I just have to define them myself.
Yeah, what a great solution, I can also use slices in Assembly, one just needs a proper macro processor like MASM and TASM from the 1990s.
yes, and if you assembly this is fine solution. Also there is no fundamental reason C++'s library types using templates are better to macros. The mechanism is basically the same.