News for hackers. Stuff that matters.
Re:Static types in Python by duaneb on Thursday October 13, 2016 @10:41PM (#12705820)
Most static typing systems have no parallel to 'deriving', which is to my understanding compile-time computation (aka a macro).
Re:Static types in Python by dllthomas on Friday October 14, 2016 @05:25AM (#12706960)
"deriving" is compile time; "Generic" is runtime inspection of the shape of a value (in terms of constructor applications). Something (at least vaguely) similar to Generic exists in many statically typed languages - including (IIRC, IIUC) Java and Go.
Re:Static types in Python by duaneb on Friday October 14, 2016 @01:37PM (#12709736)
> Something (at least vaguely) similar to Generic exists in many statically typed languages - including (IIRC, IIUC) Java and Go.

Sure—but it's in spite of static typing, not because of it. You certainly give up any guarantees of avoiding runtime errors by detecting typing issues at compile time.

Re:Static types in Python by dllthomas on Friday October 14, 2016 @02:11PM (#12710011)
Sure, it's orthogonal to static typing (I wouldn't quite say "in spite of"). I wasn't trying to weigh in on the general topic, just to clarify what was happening where.