News for hackers. Stuff that matters.
Re:The bloat of edge-case first libraries by jmull on Sunday September 21, 2025 @08:06AM (#45321998)
Static and runtime type checks are each specified in similar code. The bloat's the same.
Re:The bloat of edge-case first libraries by ModernMech on Sunday September 21, 2025 @11:19AM (#45323532)
For this particular example where they have to do a runtime parse to do the string to number conversion, yes. But in general static type checks are resolved at compile time, so they incur neither runtime cost nor do they increase the size of the resulting code. This is the primary benefit of doing static type checking.