News for hackers. Stuff that matters.
Re:APL: An Array Oriented Programming Language (2018) by eggy on Thursday March 30, 2023 @12:10PM (#35374977)
>They are, ρ5 is not the same as 2ρ5.

And +5 is not the same as 2+5. One is a sign and the other addition...

Re:APL: An Array Oriented Programming Language (2018) by gjulianm on Thursday March 30, 2023 @01:03PM (#35375855)
Yes, so therefore + is context dependent. Some context dependency is unavoidable, but having everything be context dependent is bad design IMHO.
Re:APL: An Array Oriented Programming Language (2018) by avmich on Thursday March 30, 2023 @01:33PM (#35376322)
You're really making up and bending rules here. Did you learn an array language to see things both ways?
Re:APL: An Array Oriented Programming Language (2018) by gjulianm on Thursday March 30, 2023 @02:25PM (#35377008)
What rules? I am only saying that symbols add cognitive load, even more if they're context dependent. I don't think that's controversial at all, and APL and other array languages do have context-dependent symbols.

And yes, I tried learning an array language but I didn't get far for two reasons: one, I didn't really see where could I apply it; two, it's really hard to discover things and learn incrementally when you can't really use autocomplete or even Google (punctuation and symbols are not well supported in search engines) to help with the large set of symbols/operations with multiple meanings each.

Re:APL: An Array Oriented Programming Language (2018) by eggy on Friday March 31, 2023 @02:15PM (#35391009)
My point was that mathematical symbols are also context dependent and yet they work and are useful, so I don't get your argument of context dependency against APL's symbols.