4 ms·
You can pick this kind of nonsense code for pretty much any language, are you writing this kind of code? Not really. You have several options when validating i
by mirekrusin 7y ago
You can pick this kind of nonsense code for pretty much any language, are you writing this kind of code? Not really.
You have several options when validating input, from handrolled asserts, flow-runtime, json schema, several helper libraries to writing your own dsl with help of nearley or something similar if needed.
- Supermancho 7y ago> are you writing this kind of code? Not really JS that doesnt check the type of every argument down to the prototype and dependent function level (not knowing what fns are going to be required further), is written by JS devs all day everyday. The situation isnt nonsense, it is state of the art JS development.