News for hackers. Stuff that matters.
Re:The Colors of Chemistry by acidflask on Monday June 09, 2014 @09:32PM (#7871466)
Is this so unreasonable? I needed to curry the function to sweep over the temperature T. And if you take out the units, it's simply pointwise multiplication of two functions.
Re:The Colors of Chemistry by cpa on Tuesday June 10, 2014 @04:07PM (#7874996)
Yes and no. The syntax x -> f(x) is borrowed from functional programming, which borrows it from λ-calculus. In λ-calculus, λx. f(x) is the function which maps x to f(x). So, λ -> f(λ) makes me cringe hard, because λ is a keyword! It's like trying to write in Python:

    def def(x):
        pass
Weird, uh?