HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jawzz

no profile record

comments

jawzz
·vor 4 Jahren·discuss
What digital art sites are these? Been looking for some good ones.
jawzz
·vor 4 Jahren·discuss
Oh cool, thanks for that.
jawzz
·vor 4 Jahren·discuss
You’re right. Going back to my physics example, all the variables in a physics problem are actually of the same type, float. So you’d need more specific types, but that would be infeasible-the whole point of types in a general purpose language is that they’re general enough for any use case.

If you were just coding physics problems you could have types restricted to the physics domain, that is, physical units. Which it looks like MATLAB does now support: https://www.mathworks.com/help/symbolic/units-of-measurement...
jawzz
·vor 4 Jahren·discuss
This makes me wonder: what if there was a language where variable names are determined according to the type, with the option of overriding with a custom name. So a variable of type http.Request would automatically be named “req”, the next one in scope would be “req2”, etc.

If you think about it, when you solve a physics problem, for instance, you call every mass “m1”, “m2”, etc. Maybe this would be another step in Go’s direction of conforming style to make code more standard and readable.
jawzz
·vor 4 Jahren·discuss
Don’t do anything in extremes, including not doing anything in extremes.