Comment by kbelder
4 months ago
How does that scale up to program that's thousands of lines? What if you have a hundred different vectors? You're not going to be calling them v1, v2, ...
So does it end up as
v_sepallength: 11 14 12
v_sepallthickness: 1.3 1.5 1.2
mul[v_sepallength;v_sepalthickness]
Or, do you just not do that sort of stuff in these languages? I'm not very familiar with them, but I have ended up with some pretty long programs using Pandas in Python.
> Or, do you just not do that sort of stuff in these languages?
i tell you more. it is very much recommended to avoid doing this sort of stuff in all languages.
no:
to produce a "factory" for well-formed spl objects is a no-brainer as well.
why we don't use v_ prefix:
very important things should have short names. locals you're immediately operating upon should have short names. short names should be used in a consistent way.
less important things can have longer names. variables in a broader scope can have longer names.
if you have a hundred different vectors, don't just dump them in a pile; put them in dictionaries, tables, namespaces, or scopes.
exactly.
the complexity is built differently in k.