<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 25, 2015 at 10:36 PM, Rustom Mody <span dir="ltr"><<a href="mailto:rustompmody@gmail.com" target="_blank">rustompmody@gmail.com</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"><div><div>If you think the separation of these two worlds is unnecessary then you have the mess of C's 'expressions' like ++<br>And you will have students puzzling over the wonders of nature like i = i++ whereas the most useful answer would be "Syntax Error"<br></div></div></div></blockquote><div><br></div><div>A good reason NOT to teach C as a first language ;-)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>And finally all this is rather OT.  I am talking of a framework for a teacher to chart a course through python, not any changes per se to python itself.<br></div></div></div></blockquote><div><br></div><div>I would argue that you are actually not talking about teaching Python, per se -- but using a (subset) of python to teach programming in the more general sense.</div><div><br></div><div>If you want to teach Python, then I think it is a mistake to teach a truncated version first -- it will just lead to confusion later.</div><div><br></div><div>But having a "functional" version of Python for teaching functional programming concepts makes some sense.</div><div><br></div><div>Though I think one woulc create that as a monkey=patched version of python wihtout hacing into the core pyton implimentaiton:</div><div><br></div><div>i.e. replace map(), etc, with versions that return tuples, rather than lists, that kind of thing.</div><div><br></div><div>though maybe replacing list comprehensions with tuple comprehensions would be a bit tricky...</div><div><br></div><div>Though I'm still not sure you'd need to -- sure you CAN mutate a list, but if you use functional approaches, lists won't get mutated -- so where is the source of the confusion?</div><div><br></div><div>-Chris</div><div><br></div><div><br></div><div><br></div></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>