aboutsummaryrefslogtreecommitdiff
path: root/docs/problems.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-22 18:05:42 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-23 16:42:28 -0400
commit2aef02836ee0aa1f778f68d139d07b42be02d93e (patch)
tree7253d55c8f8e0d04178bd02650c50f953ee7bdc4 /docs/problems.html
parent33bf9bf9b2408133241f9a1362d400fd5798773d (diff)
Note โŒŠโˆ˜รท versus | argument order confusion
Diffstat (limited to 'docs/problems.html')
-rw-r--r--docs/problems.html2
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>