Re: [PATCH] pass constants as first argument to st_mult()
- From
Jeff King <peff@peff.net>
- Date
- Aug 3, 2016, 20:04 UTC
- Message-ID
- <20160803200459.hosgwqbgxnfc2jlz@sigill.intra.peff.net>
- In-Reply-To
- <CAGZ79kYonA8pYfW68SC6YaZ84Gz2Eo_qXDxQJ14_62abcd8-Og@mail.gmail.com>
On Wed, Aug 03, 2016 at 12:59:34PM -0700, Stefan Beller wrote:
> I think I'd find calloc intuitive as a typical textbook question, "I > want to have space for "foos", which each cost 5 memory, go figure out > how much I need and hand it back to me".
I think it is more a language question than a math one, though. Is it "5 instances, costing 30 each" or "30-cost instances, 5 times". They are the same semantically (there is no "30 instances of a 5-cost thing", which does not map to the problem space), but just with a different order.
-Peff