News for hackers. Stuff that matters.
Re:Go Slices Are Fat Pointers by Crinus on Monday July 01, 2019 @06:22AM (#20323983)
How does

    extern void foo(char a[..]);
differ from

    extern void foo(size_t dim, char a[dim]);
if they are meant to be binary compatible?
Re:Go Slices Are Fat Pointers by pjmlp on Monday July 01, 2019 @10:06AM (#20325336)
The programmer doesn't have to keep both in sync manually, so there is less chance that they blow up, as it happens regularly in C code, even after being reviewed.
Re:Go Slices Are Fat Pointers by inlined on Monday July 01, 2019 @10:33AM (#20325610)
I don’t recall that syntax being valid C. I thought the length modifier had to be a literal.
Re:Go Slices Are Fat Pointers by pjmlp on Monday July 01, 2019 @10:37AM (#20325653)
It doesn't matter, because it gets ignored anyway.