News for hackers. Stuff that matters.
Re:Swift architecture at Uber by slavapestov on Thursday April 27, 2017 @12:19AM (#14209140)
Yes. Having done a fair bit of C programming in the kernel, where generic data structures are simulated with preprocessor macros and unsafe casts, I much prefer either static languages with generics, or dynamically typed languages.
Re:Swift architecture at Uber by shakna on Thursday April 27, 2017 @01:52AM (#14209460)
Ada was designed for the DOD by the High Order Language Working Group for this.

They wanted something safe for embedded, and the original specification in '83 included generics, so you could handle data structures in a nice, safe, performant manner.

Re:Swift architecture at Uber by jacquesm on Thursday April 27, 2017 @12:22AM (#14209149)
That's a fair point. Personally I don't like that style either so I avoid it at all costs but I've seen it practiced. It usually revolves around creative use of 'void' pointers and terribly hard to isolate bugs.