I think that would confuse me, and maybe break syntax highlighting. It *looks* like a message send to nothing. How about something that gives more feeling of inserting... add <-- 3 , 4. add <<< 3 , 4. add <<: 3 <<: 4. add @:3 @:4. cheers -ben On Wed, Jun 3, 2015 at 8:17 AM, Francisco Garau <francisco.garau@gmail.com> wrote:
Hello,
I'd like to make some syntax changes that would make block evaluation more legible.
Currently we define and evaluate blocks like this:
inc := [ : x | x + 1 ]. (inc value: 3) = 4. addTo := [ : x : y | x + y ]. (addTo value: 3 value: 4) = 7.
But I would like them to be defined like this:
[ inc: x | x + 1 ]. (inc: 3) = 4
[add: x to: y | x + y ]. (add: 3 to: 4) = 7.
What do you think? Is it feasible?
I presume it's Opal where I should start looking at implementing this changes, but any hints/suggestions are welcomed.
Cheers, Francisco