Re:Responder: A familiar HTTP Service Framework
by a1369209993 on Saturday October 20, 2018 @02:35AM
(#18262080)
> So what's really happening is the type expressions are pretending to be "just everyday python", but actually they have arbitrary restrictions (cannot be functions? need to work via overriding `__getitem__`?) that neither you nor I were aware of.
Yeah, that sounds about par for the course for bolt-on static-y typing in languages that aren't supposed to be statically typed.
Re:Responder: A familiar HTTP Service Framework
by basil-rash on Saturday October 20, 2018 @10:54AM
(#18263534)
At least we have TS.
And even if the code were valid, it's relying on N being a statically known value, which is a bit off because sure, you could have N be some global const config variable, but it would be very weird for configuring the value of the variable to require you to also go into the code and change things around to work with bool's or None's instead of int's.