logoalt Hacker News

riazrizvitoday at 6:15 AM2 repliesview on HN

No, not in a programming language sense, because arrays are a notation for address offsetting, whereas functions change the execution context of the machine, which is critical to processing performance (think Horner's method).

Not even in a functional sense because, even though functions are input-output maps we define, the inputs are dimensionally rich, it's nowhere close to equivalent to jerry rig a contiguous input space for that purpose.


Replies

marcosdumaytoday at 6:19 AM

> the inputs are dimensionally rich

Well, that makes arrays a subset of functions. What is still a "yes" to the questions "are arrays functions?"

And yeah, of course the article names Haskell on its second phrase.

gf000today at 7:24 AM

> arrays are a notation for address offsetting

That's an implementation detail, though.

show 1 reply