News for hackers. Stuff that matters.
Re:Some Were Meant for C (2017) [pdf] by ChrisRR on Thursday April 25, 2019 @07:56AM (#19747103)
I agree with that. Recently I started reading "Writing an interpreter in Go" and thought I'd follow along using C.

From the first chapter, the Go code starts using strings as a short-cut to represent tokens . In other languages this is trivial because strings are very easy to create, resize, change, etc. Using C, this became an issue though, as using strings became a roadblock where I started having to implement different solutions rather than focusing my attention on the contents of the book.

Re:Some Were Meant for C (2017) [pdf] by aap_ on Thursday April 25, 2019 @09:37AM (#19747908)
Using strings for tokens is probably not how you would ever do this in C. Make the tokens enums.
Re:Some Were Meant for C (2017) [pdf] by drb91 on Friday April 26, 2019 @10:51AM (#19758118)
Oddly this is also true for go....