r/EncapsulatedLanguage • • Sep 08 '20
Arithmetic Proposal Brackets in math
[deleted] — view deleted post
5
Upvotes
r/EncapsulatedLanguage • • Sep 08 '20
[deleted] — view deleted post
View all comments
1
u/gxabbo Sep 09 '20
For reasons of both aesthetics and consistency, I'm very much against non-matching brackets. If a closing one is there, there should an opening one, too. And vice versa.
I'll also vote against anything were two or more operators follow each other without brackets. It makes the whole expression more difficult to parse.
So
1 x 2 + 3 x 4should be+ ( x 1 2) ( x 3 4)or(+ ( x 1 2) ( x 3 4))Brackets are there for grouping symbols. So let's use them for that.