Cleaning up and 2.0 - Addition and Concatenation (Program Bug and Problems)

by igendel ⌂ @, Wednesday, April 06, 2016, 21:44 (388 days ago) @ Jim

Hi Jim,

Just to clarify, when you write "Binary AND" and "Binary OR", do you mean Bitwise AND and OR? Because that would really confuse users with background in C/C++, where && and || are the Logical AND and OR.

Unless it's for backward compatibility, I think three different operators for string concatenation are too much. In fact, for the sake of avoiding bugs I'd even give up the string-to-number functionality of the "+" operator altogether:
Number + number => number
String + string => string
Number + string => [Error]

(You can see I prefer strong-typing languages :-) )

I am looking at this from the perspective of a complete beginner, e.g. my children. Perhaps there's a different audience for this which is bigger and more important...

Sincerely,
Ido


Complete thread:

 RSS Feed of thread

powered by my little forum