diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-22 18:05:42 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-23 16:42:28 -0400 |
| commit | 2aef02836ee0aa1f778f68d139d07b42be02d93e (patch) | |
| tree | 7253d55c8f8e0d04178bd02650c50f953ee7bdc4 /docs | |
| parent | 33bf9bf9b2408133241f9a1362d400fd5798773d (diff) | |
Note โโรท versus | argument order confusion
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/problems.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/problems.html b/docs/problems.html index 761117a1..9469d9dd 100644 --- a/docs/problems.html +++ b/docs/problems.html @@ -26,7 +26,7 @@ <h3 id="hard-to-search-part-of-an-array-or-in-a-different-order">Hard to search part of an array or in a different order</h3> <p>This includes index-of-last, and searching starting at a particular index, when the desired result indices are to the array to be seached <em>before</em> it is modified. Given indices <code><span class='Value'>i</span></code> into an array <code><span class='Value'>๐จ</span></code> (for example <code><span class='Function'>โฝโโ </span><span class='Value'>๐จ</span></code> or <code><span class='Value'>a</span><span class='Function'>+โ</span><span class='Value'>b</span></code>), this section can be searched with <code><span class='Paren'>(</span><span class='Value'>i</span><span class='Function'>โพโ </span><span class='Value'>๐จ</span><span class='Paren'>)</span><span class='Function'>โ</span><span class='Modifier'>ห</span><span class='Paren'>(</span><span class='Value'>i</span><span class='Function'>โ</span><span class='Value'>๐จ</span><span class='Paren'>)</span><span class='Function'>โ</span><span class='Value'>๐ฉ</span></code>. But this is clunky and difficult for the implementation to optimize.</p> <h3 id="subtraction-division-and-span-are-backwards">Subtraction, division, and span are backwards</h3> -<p>The left argument feels much more like the primary one in these cases (indeed, this matches the typical left-to-right ordering of binary operators in mathematics). Not really fixable; too much precedent.</p> +<p>The left argument feels much more like the primary one in these cases (indeed, this matches the typical left-to-right ordering of binary operators in mathematics). The commonly-paired <code><span class='Function'>โ</span><span class='Modifier2'>โ</span><span class='Function'>รท</span></code> and <code><span class='Function'>|</span></code> have opposite orders for this reason. Not really fixable; too much precedent.</p> <h3 id="nothing--interacts-strangely-with-before-and-after">Nothing (<code><span class='Nothing'>ยท</span></code>) interacts strangely with Before and After</h3> <p>Since <code><span class='Value'>๐จ</span><span class='Function'>F</span><span class='Modifier2'>โธ</span><span class='Function'>G</span><span class='Value'>๐ฉ</span></code> is <code><span class='Paren'>(</span><span class='Function'>F</span><span class='Value'>๐จ</span><span class='Paren'>)</span><span class='Function'>G</span><span class='Value'>๐ฉ</span></code> and <code><span class='Value'>๐จ</span><span class='Function'>F</span><span class='Modifier2'>โ</span><span class='Function'>G</span><span class='Value'>๐ฉ</span></code> is <code><span class='Value'>๐จ</span><span class='Function'>F</span> <span class='Function'>G</span><span class='Value'>๐ฉ</span></code> in the dyadic case, we might expect these to devolve to <code><span class='Function'>G</span><span class='Value'>๐ฉ</span></code> and <code><span class='Function'>F</span> <span class='Function'>G</span><span class='Value'>๐ฉ</span></code> when <code><span class='Value'>๐จ</span></code> is not present. Not so: instead <code><span class='Value'>๐ฉ</span></code> is substituted for the missing <code><span class='Value'>๐จ</span></code>. And Before and After are also the main places where a programmer might try to use <code><span class='Value'>๐จ</span></code> as an operand, which doesn't work either (the right way is the train <code><span class='Value'>๐จ</span><span class='Function'>Fโข</span></code>).</p> <h3 id="cant-access-array-ordering-directly">Can't access array ordering directly</h3> |
