Name: Anonymous 2016-02-10 2:06
Couldn't we just consider every integer to be a function instead of +, -, etc?
That way we do not need special syntax or weird mindfucking prefix notations do just add two integers.
Consider:
* and + are just symbols passed into the functions
(could as well be
3 + 1 = 4
4 + 4 = 8
2 * 8 = 16
1 + 16 = 17
Why does no language do this?
That way we do not need special syntax or weird mindfucking prefix notations do just add two integers.
Consider:
(1 + (2 * ((3 + 1) + 4))
* and + are just symbols passed into the functions
(could as well be
(define + '+)
(define - '-)
)3 + 1 = 4
4 + 4 = 8
2 * 8 = 16
1 + 16 = 17
Why does no language do this?