News for hackers. Stuff that matters.
Re:So you want to write your own language? by pseut on Monday February 03, 2014 @08:12PM (#7174816)
I love this. Write an integral with infix notation. :)
Re:So you want to write your own language? by peterwoo on Tuesday February 04, 2014 @12:14AM (#7175654)
(0, 1) $ (\x -> x*x)
Re:So you want to write your own language? by andrewflnr on Tuesday February 04, 2014 @02:21AM (#7175950)
I might actually put the limits after the integral sign. Then it makes an indefinite integral look like a partially-applied function just waiting for a tuple of limits to make it a definite integral. That might get hairy for iterated integrals, besides being highly unconventional.
Re:So you want to write your own language? by peterwoo on Tuesday February 04, 2014 @03:15AM (#7176140)
Yeah, that would seem to be more practical with respect to currying (and perhaps dynamic dispatch). I was just trying to make it look as similar as possible to the Leibniz notation. :)