https://bugs.documentfoundation.org/show_bug.cgi?id=174538

--- Comment #5 from Alex <[email protected]> ---
(In reply to Alex from comment #4)
> (In reply to Alex from comment #3)
> > (In reply to Alex from comment #2)
> > > (In reply to Ben Urban from comment #1)
> > > > I may be misunderstanding your description; please let me know if I am. 
> > > > The
> > > > biggest (or at least most obvious) problem I can see with it is that it
> > > > would be a compatibility problem for any formula which expects to use 
> > > > the
> > > > JumpMatrix functionality but doesn't expect to need {} to do so. Right 
> > > > now,
> > > > all of that is implicit from the formula writer's perspective. If the 
> > > > change
> > > > were going the other way, compatibility could be maintained (I think), 
> > > > but I
> > > > don't see how it could be, in this direction. (Honestly, I would prefer 
> > > > that
> > > > array formulas be explicit (or explicitly implicit*), in general; it 
> > > > makes
> > > > both the compiler and interpreter much simpler to understand and enables
> > > > more dynamic behaviors from the operators and functions.)
> > > > 
> > > > 
> > > > * "Explicitly implicit" is a term I'm using to refer to the idea of 
> > > > making
> > > > all (or nearly all) functions and operators directly (and explicitly)
> > > > support arrays as input.
> > > 
> > > Probably I wasn't clear enough in my first post—let me show the exact 
> > > brace
> > > placement.
> > > Right now, when you wrap a formula with CSE (Ctrl+Shift+Enter), like:
> > > {=SUM(IF(ARRAY0 * ARRAY1 = $A1; ARRAY2; ARRAY3)) * SCALAR_RANGE}
> > > CSE automatically treats all parts of the formula as arrays, pulling
> > > SCALAR_RANGE into array evaluation instead of keeping it as a single
> > > row-level scalar.
> > > My idea is to allow explicit {...} syntax inside regular formulas in the
> > > exact places needed (like a scoped ARRAYFORMULA), giving us that 
> > > "explicitly
> > > implicit" behavior strictly inside the braces:
> > >={SUM(IF(ARRAY0 * ARRAY1 = $A1; ARRAY2; ARRAY3))} * SCALAR_RANGE then 
> > >input CSE.
> > > Using an explicit {...} marker is syntactically clean, preserves 100%
> > > backward compatibility for existing formulas without braces, and 
> > > eliminates
> > > unpredictable auto-vectorization where you least expect it.

-Wrapping ranges in INDEX(SCALAR_RANGE; ...) is verbose and hard to read.
-Prefixing ranges with @ forces you to put @ before every range inside a large
scalar sub-expression, rather than simply wrapping {...} once around the small
vector part.
-Using SUMPRODUCT avoids CSE, but loses the lazy short-circuiting of JumpMatrix
(evaluating both IF branches every time) and hurts iterative recalculation
speed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to