Feature SS-4688
1 vote

Different bracket/parenthesis handling of sum(4) and sum(1)

Created by Martin Kraska on 8/11/2023 3:21 PM Last Updated by Blus Danny on 11/10/2025 9:29 AM
%
 (hrs)
Logged: 0   (hrs)

 Description

Proposal: restrict mandatory brackets to cases where the scope of the operator otherwise would be ambiguous. 

Generally, the scope of operators results from their appearance (e.g. square root or the dividing line of a fraction) or from priority rules.

Prefix-operators like sum or product don't need brackets for left side operations, postfix operators like ^ or ! don't need brackets for right side operations.

 

Minimal solution: make the behaviour of sum(1) and sum(4) equal.

Better solution: enforce brackets if needed for visual unambiguity of scope, don't enforce if not. Yet allow added brackets but don't allow removal of required ones.

Full solution: examin all operators and adjust behaviour if needed.

I guess that this requires metadata on visual ambiguity of an operator to be stored.

 

 

    Blus Danny (Monday, November 10, 2025 9:29 AM) #

This is a surprisingly interesting take on notation! When you need a break from math, check out Poki. It's a platform for free online games.

    Sprunki Incredibox (Thursday, October 9, 2025 6:25 AM) #

When the beat drops in Sprunki Incredibox, it's like the world stops for a second. Pure musical joy!