Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Subject

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: (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?

Name: Anonymous 2016-02-15 13:08

>>16
the only time infix is ever convenient is with functions of two parameters. It is other wise complete and ambiguous shit.

cond1 ? value1 :
cond2 ? value2 :
cond3 ? value3 :
value4

Looks pretty and unambiguous enough to me.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List