<div dir="ltr">Strongly agreed with ok and Tikhon. I've tried these weird pidgins and localized fabrications wrapped around Haskell before, it's only a stumbling block.<div><br></div><div>Haskell is simple, you don't have to lie - just encourage them not to draw false analogies.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 7:52 PM, Tikhon Jelvis <span dir="ltr"><<a href="mailto:tikhon@jelv.is" target="_blank">tikhon@jelv.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If you teach them about how operators are normal functions in Haskell, using an operator to index into an array makes the indexing operation less magical—a big pedagogical boon, in my view. The fewer special cases in the language you're teaching, the better, and looking similar to other languages is not a good reason for a special case.<br><br>Especially since the similarity could be misleading!)<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 5:48 PM, <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz" target="_blank">ok@cs.otago.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> I'm a part time tutor even though I don't look Elizabethan<br>
><br>
> I was trying to lower the learning curve for students<br>
<br>
</span>Using square brackets for array indexing in Haskell<br>
would be more a case of putting a stumbling block in<br>
their way than lowering the learning curve.<br>
<br>
Fortran uses A(I), not A[I], and has for the last fifty-some<br>
years. The official definition of Simula 67 uses A(I) as<br>
well, despite its predecessor Algol 60 using a[i]. COBOL<br>
uses A(I), and has done so nearly as long as Fortran. PL/I<br>
(yes, it still exists) uses A(I), not A[I]. BASIC uses<br>
A(I), this is still so in Visual Basic.NET. If memory<br>
serves me correctly, MINITAB uses parentheses, not brackets.<br>
<br>
Is a pattern beginning to emerge?<br>
<br>
Lying to the students by implicitly telling them "all programming<br>
languages use square brackets for array indexing" will be doing<br>
them no favour. Even lying about Haskell is no kindness.<br>
<div><div><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>