Worst ideas/features in programming lang

Dom DiSc dominikus at scherkl.de
Thu Oct 28 07:05:47 UTC 2021


On Wednesday, 27 October 2021 at 14:07:42 UTC, Ola Fosheim 
Grøstad wrote:
> FWIW, from Stefik and Sibert, «An Empirical Investigation into 
> Programming Language syntax», _ACM Transactions on Computing 
> Education_, vol. 13, No. 2, 2013:
>
> Both programmers and non-programmers had their preference for 
> *boolean and* ordered as: x and y, x&y, x&&y. With a dip in 
> interest for the && version. Which isn't surprising.
>
> For *boolean or* there was more deviance. Non-programmers 
> preferred: x or y, either x or y, x and y (!). Non-programmers 
> seemed to have problem grasping the concept of logical or. 
> Programmers preferred: x or y, either x or y, x||y.
>
> For *string concatenation* programmers had a preference for: +, 
> &, _ and a dislike for: -, ?, $
>
As with all statistics the answers are heavily biased by the 
choices that were not asked for:
I would strongly prefer ∨ for or, ∧ for and (and ⊻ for exclusive 
or btw) and I think ~ for cat is a good choice (and far better 
than +), but I would prefer ∘.




More information about the Digitalmars-d mailing list