3 ms·
What's the non-Unicode version of "∩"? Obviously it's "(&)"! I find that pretty obvious, actually. After all A ∩ B = { x ∈ A & x ∈ B }
by cygx 10y ago
What's the non-Unicode version of "∩"? Obviously it's "(&)"!
I find that pretty obvious, actually. After all
A ∩ B = { x ∈ A & x ∈ B }
- jlarocco 10y agoThat at least explains where it comes from, but I'd still argue it won't be obvious to people at first. And it's still kind of confusing. If the goal is to match math notation then wouldn't (^) or (+) make more sense? A ∩ B = { x ∈ A ∧ x ∈ B }
- cygx 10y agoIf the goal is to match math notation then wouldn't (^) or (+) make more sense? Not necessarily. & is the ASCII symbol associated with logical 'and' that most programming languages have settled on, including Perl6, so for internal consistency, it makes sense to use it. Also note that the ampersand, while pretty rare, is sometimes used for that purpose in mahematical notation (https://en.wikipedia.org/wiki/List_of_logic_symbols https://en.wikipedia.org/wiki/List_of_logic_symbols).