Re:Programming language development: the past 5 years (2011)
by mej10 on Thursday June 30, 2016 @05:34PM
(#12011952)
In math ( * ) is a binary operation. ( * 2) returning 2 is confusing to everyone that hasn't gotten used to a non-standard way of thinking about * .
[ Parent
| on HN ]
Re:Programming language development: the past 5 years (2011)
by kovrik on Thursday June 30, 2016 @05:45PM
(#12012035)
> In math ( * ) is a binary operation.
https://en.wikipedia.org/wiki/Empty_product
I am talking about Empty Product.
In all Lisps I know ( * ) returns 1, (* n) returns n. Which makes sense.
Shen's example is confusing for me.
Re:Programming language development: the past 5 years (2011)
by MichaelBurge on Thursday June 30, 2016 @06:26PM
(#12012329)
* :: a -> a -> a
Π :: {a} -> a
Re:Programming language development: the past 5 years (2011)
by thaumasiotes on Thursday June 30, 2016 @06:11PM
(#12012230)
This would make nonsense out of exponents less than 2. Fortunately, they actually make perfect sense.