3 ms·
Type systems give you a way to specify what you know at design time. If "has any tabular structure" is all you know then that is what you specify. I don't thin
by fauigerzigerk 7y ago
Type systems give you a way to specify what you know at design time. If "has any tabular structure" is all you know then that is what you specify.
I don't think "but my data is dynamic" is a good argument for or against dynamic typing. It's an entirely separate issue.
- dkersten 7y ago> but my data is dynamic In my experience, most dynamically types code makes assumptions about structure that may not hold later (better have tests!) and when it breaks some kind of validation is needed anyway to select between the correct version of the different dynamic options. In static languages this is simply typically done sooner, since the type system requires it to parse the data. (Or it’s in variants that are accessed without checking that the accesses are valid, sigh)
- goatlover 7y agoThe type system depends on the kind of data you want to keep around in your columns, which could be a mix of types, and it could be all strings and NaNs, for example. This is common with DataFrames. There's a huge number of possible combinations of data you could be reading in that you need to clean up, reshape and then analyze. And you might be making decisions on how to do that in the middle of your wrangling. It's just like what you can put in Excel or a CSV.
- fauigerzigerk 7y agoI know. I've been doing this sort of thing for most of my adult life.