2 ms·
> C has "saved" you the work of putting parentheses around (a+b) at the cost of making you add commas to everything. Not only that but also at the cost of putt
by kazinator 4y ago
> C has "saved" you the work of putting parentheses around (a+b) at the cost of making you add commas to everything.
Not only that but also at the cost of putting a comma which is spelled + between all the terms of a addition:
myfunction(a(),b()+c()+d()+e()+f(),g())
(myfunction(a)(+(b)(c)(d)(e)(f))(g))
- msk-lywenn 4y agocould just as well be myfunction(a() +(b() c() d() e() f()) g()) with the condition that there is no space between the symbol and the opening parenthesis
- rileyphone 4y agoI’m working on a syntax for an object oriented lisp-like thats basically this (the self receiver is implied) .myfunction(.a .b.+(.c).+(.d).+(.f) .g) though making binary arithmetic operations singly-dispatched methods of the number class may be a mistake.