<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi all,
<div class=""><br class="">
</div>
<div class="">My understanding of the technical difference between an array and a list is that an array is allocated consecutive bytes of memory when a program is compiled, and therefore must have a predefined maximum size - as determined by the data type.
 Conversely a list is a series of linked pointers to memory addresses which are not allocated until the program executes and can therefore be of undetermined size until runtime.</div>
<div class=""><br class="">
</div>
<div class="">Arrays have space overheads, whereas lists have processing overheads.</div>
<div class=""><br class="">
</div>
<div class="">The most appropriate/efficient choice depends on the characteristics of the data a given program will handle.<br class="">
<div apple-content-edited="true" class=""><span><br class="Apple-interchange-newline">
Regards,</span>
<div class=""><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><br class="">
</span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><span><span style="font-family: Helvetica; font-size: 12px; font-style: normal;"><span><span><span style="font-weight: normal; color: rgb(0, 0, 0);"><span><span><img height="60" width="97" apple-inline="yes" id="3D9E116E-DD19-484A-8D50-15CDA321CB01" apple-width="yes" apple-height="yes" src="cid:9E5109AF-9726-4BE7-B3EE-B1896EDA6F52" class=""></span>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">
<br class="">
<b class="">Katherine Young</b></span></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><span><font face="Helvetica-Light" class="">11C
 Mentor</font></span></span></span></span></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><span><font face="Helvetica-Light" class="">Mathematics
 &amp; Information Technology Teacher</font></span></span></span></span></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<b class=""><font color="#5e5e5e" class="">Castlemaine Secondary College</font></b></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<b class=""><font color="#5e5e5e" class="">Etty Street Campus</font></b></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<font color="#5e5e5e" face="Helvetica-Light" class="">Etty Street</font></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<font color="#5e5e5e" face="Helvetica-Light" class="">Castlemaine VIC 3450</font></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">
<font color="#5e5e5e" face="Helvetica-Light" class="">T: (03) 5479 4222 &nbsp; | &nbsp;F: (03) 5479 4230</font></div>
</span></span></span></span></span></span></span></span></span></div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 12, 2015, at 2:26 PM, <a href="mailto:sofdev-request@edulists.com.au" class="">
sofdev-request@edulists.com.au</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">Send sofdev mailing list submissions to<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><a href="mailto:sofdev@edulists.com.au" class="">sofdev@edulists.com.au</a><br class="">
<br class="">
To subscribe or unsubscribe via the World Wide Web, visit<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>http://www.edulists.com.au/mailman/listinfo/sofdev<br class="">
or, via email, send a message with subject or body 'help' to<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>sofdev-request@edulists.com.au<br class="">
<br class="">
You can reach the person managing the list at<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>sofdev-owner@edulists.com.au<br class="">
<br class="">
When replying, please edit your Subject line so it is more specific<br class="">
than &quot;Re: Contents of sofdev digest...&quot;<br class="">
<br class="">
<br class="">
Today's Topics:<br class="">
<br class="">
&nbsp;&nbsp;1. Arrays with mixed data types (Mark)<br class="">
&nbsp;&nbsp;2. Re: Arrays with mixed data types (Laurie Savage)<br class="">
&nbsp;&nbsp;3. Re: Arrays with mixed data types (Laurie Savage)<br class="">
&nbsp;&nbsp;4. Re: Arrays with mixed data types (Mark)<br class="">
<br class="">
<br class="">
----------------------------------------------------------------------<br class="">
<br class="">
Message: 1<br class="">
Date: Fri, 12 Jun 2015 13:27:54 &#43;1000<br class="">
From: Mark &lt;mark@vceit.com&gt;<br class="">
Subject: [Year 12 SofDev] Arrays with mixed data types<br class="">
To: &quot;Year 12 Software Development Teachers' Mailing List&quot;<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;sofdev@edulists.com.au&gt;<br class="">
Message-ID:<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;CACu=8Z1oLGfq7vxvBhgM4k7_NzR8E8ghpv8w2Jf3TxoD07DZ-g@mail.gmail.com&gt;<br class="">
Content-Type: text/plain; charset=&quot;utf-8&quot;<br class="">
<br class="">
Hi, codemakers.<br class="">
<br class="">
Most languages require all elements of an array to have a single data type,<br class="">
but I have a nagging suspicion that there is an exception or two.<br class="">
<br class="">
e.g. Apparently PHP allows mixed data types in its 'arrays' but I believe<br class="">
PHP 'arrays' are actually more like the lists found in Perl or Python and<br class="">
so are not classical arrays.<br class="">
<br class="">
Is there a language that allows true arrays with mixed data types?<br class="">
<br class="">
Cheers<br class="">
Mark<br class="">
<br class="">
-- <br class="">
<br class="">
Before Facebook, how many people would take a picture of their dinner on a<br class="">
disposable camera, get the photos developed, then go round to your friends'<br class="">
houses and show them all the photo?<br class="">
<br class="">
-- <br class="">
<br class="">
Mark Kelly<br class="">
<br class="">
http://vceit.com<br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20150612/976c592f/attachment-0001.html
<br class="">
<br class="">
------------------------------<br class="">
<br class="">
Message: 2<br class="">
Date: Fri, 12 Jun 2015 14:09:17 &#43;1000<br class="">
From: Laurie Savage &lt;08327998@pvgc.vic.edu.au&gt;<br class="">
Subject: Re: [Year 12 SofDev] Arrays with mixed data types<br class="">
To: &quot;Year 12 Software Development Teachers' Mailing List&quot;<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;sofdev@edulists.com.au&gt;<br class="">
Message-ID:<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;CAPrMnR-XT_g3jfn2N=18v2Z30VCxEsrSmhtibdFODBJLLPdPDA@mail.gmail.com&gt;<br class="">
Content-Type: text/plain; charset=&quot;utf-8&quot;<br class="">
<br class="">
If it quacks like an array ...? Could you elaborate on why Python lists<br class="">
ain't arrayz?<br class="">
<br class="">
Laurie<br class="">
<br class="">
Laurie Savage<br class="">
https://sites.google.com/a/pvgc.vic.edu.au/mr-savage/home<br class="">
<br class="">
On 12 June 2015 at 13:27, Mark &lt;mark@vceit.com&gt; wrote:<br class="">
<br class="">
<blockquote type="cite" class="">Hi, codemakers.<br class="">
<br class="">
Most languages require all elements of an array to have a single data<br class="">
type, but I have a nagging suspicion that there is an exception or two.<br class="">
<br class="">
e.g. Apparently PHP allows mixed data types in its 'arrays' but I believe<br class="">
PHP 'arrays' are actually more like the lists found in Perl or Python and<br class="">
so are not classical arrays.<br class="">
<br class="">
Is there a language that allows true arrays with mixed data types?<br class="">
<br class="">
Cheers<br class="">
Mark<br class="">
<br class="">
--<br class="">
<br class="">
Before Facebook, how many people would take a picture of their dinner on a<br class="">
disposable camera, get the photos developed, then go round to your friends'<br class="">
houses and show them all the photo?<br class="">
<br class="">
--<br class="">
<br class="">
Mark Kelly<br class="">
<br class="">
http://vceit.com<br class="">
<br class="">
_______________________________________________<br class="">
http://www.edulists.com.au - FAQ, Subscribe, Unsubscribe<br class="">
IT Software Development Mailing List kindly supported by<br class="">
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment<br class="">
Authority and<br class="">
http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html<br class="">
http://www.vitta.org.au &nbsp;- VITTA Victorian Information Technology<br class="">
Teachers Association Inc<br class="">
http://www.swinburne.edu.au/ict/schools - Swinburne University<br class="">
<br class="">
</blockquote>
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20150612/94a2e9c3/attachment-0001.html
<br class="">
<br class="">
------------------------------<br class="">
<br class="">
Message: 3<br class="">
Date: Fri, 12 Jun 2015 14:10:59 &#43;1000<br class="">
From: Laurie Savage &lt;08327998@pvgc.vic.edu.au&gt;<br class="">
Subject: Re: [Year 12 SofDev] Arrays with mixed data types<br class="">
To: &quot;Year 12 Software Development Teachers' Mailing List&quot;<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;sofdev@edulists.com.au&gt;<br class="">
Message-ID:<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;CAPrMnR9U-tjfXPMAZETQMV-FkdOcM=s=bmT=c9v86VTVG3EDcg@mail.gmail.com&gt;<br class="">
Content-Type: text/plain; charset=&quot;utf-8&quot;<br class="">
<br class="">
Lisp?<br class="">
<br class="">
Laurie Savage<br class="">
https://sites.google.com/a/pvgc.vic.edu.au/mr-savage/home<br class="">
<br class="">
On 12 June 2015 at 14:09, Laurie Savage &lt;08327998@pvgc.vic.edu.au&gt; wrote:<br class="">
<br class="">
<blockquote type="cite" class="">If it quacks like an array ...? Could you elaborate on why Python lists<br class="">
ain't arrayz?<br class="">
<br class="">
Laurie<br class="">
<br class="">
Laurie Savage<br class="">
https://sites.google.com/a/pvgc.vic.edu.au/mr-savage/home<br class="">
<br class="">
On 12 June 2015 at 13:27, Mark &lt;mark@vceit.com&gt; wrote:<br class="">
<br class="">
<blockquote type="cite" class="">Hi, codemakers.<br class="">
<br class="">
Most languages require all elements of an array to have a single data<br class="">
type, but I have a nagging suspicion that there is an exception or two.<br class="">
<br class="">
e.g. Apparently PHP allows mixed data types in its 'arrays' but I believe<br class="">
PHP 'arrays' are actually more like the lists found in Perl or Python and<br class="">
so are not classical arrays.<br class="">
<br class="">
Is there a language that allows true arrays with mixed data types?<br class="">
<br class="">
Cheers<br class="">
Mark<br class="">
<br class="">
--<br class="">
<br class="">
Before Facebook, how many people would take a picture of their dinner on<br class="">
a disposable camera, get the photos developed, then go round to your<br class="">
friends' houses and show them all the photo?<br class="">
<br class="">
--<br class="">
<br class="">
Mark Kelly<br class="">
<br class="">
http://vceit.com<br class="">
<br class="">
_______________________________________________<br class="">
http://www.edulists.com.au - FAQ, Subscribe, Unsubscribe<br class="">
IT Software Development Mailing List kindly supported by<br class="">
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment<br class="">
Authority and<br class="">
http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html<br class="">
http://www.vitta.org.au &nbsp;- VITTA Victorian Information Technology<br class="">
Teachers Association Inc<br class="">
http://www.swinburne.edu.au/ict/schools - Swinburne University<br class="">
<br class="">
</blockquote>
<br class="">
<br class="">
</blockquote>
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20150612/f4f65b36/attachment-0001.html
<br class="">
<br class="">
------------------------------<br class="">
<br class="">
Message: 4<br class="">
Date: Fri, 12 Jun 2015 14:25:58 &#43;1000<br class="">
From: Mark &lt;mark@vceit.com&gt;<br class="">
Subject: Re: [Year 12 SofDev] Arrays with mixed data types<br class="">
To: &quot;Year 12 Software Development Teachers' Mailing List&quot;<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;sofdev@edulists.com.au&gt;<br class="">
Message-ID:<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;CACu=8Z3GTqUEWXwA=iEZ75mDE=7g_aghLejpWu87xE8tdPn81A@mail.gmail.com&gt;<br class="">
Content-Type: text/plain; charset=&quot;utf-8&quot;<br class="">
<br class="">
I'm not familiar with the inner workings of PHP, but my research suggests<br class="">
their 'arrays' are not exactly the same nature as most other languages.<br class="">
<br class="">
It's sort of like when TV guides categorise 'Big Brother' as<br class="">
'entertainment' ... a non-classical use of the term.<br class="">
<br class="">
I ask because I'm writing an exam with a question about whether a 2D array<br class="">
with mixed data types is possible (or wise).<br class="">
<br class="">
Cheers<br class="">
Mark<br class="">
<br class="">
<br class="">
On 12 June 2015 at 14:09, Laurie Savage &lt;08327998@pvgc.vic.edu.au&gt; wrote:<br class="">
<br class="">
<blockquote type="cite" class="">If it quacks like an array ...? Could you elaborate on why Python lists<br class="">
ain't arrayz?<br class="">
<br class="">
Laurie<br class="">
<br class="">
Laurie Savage<br class="">
https://sites.google.com/a/pvgc.vic.edu.au/mr-savage/home<br class="">
<br class="">
On 12 June 2015 at 13:27, Mark &lt;mark@vceit.com&gt; wrote:<br class="">
<br class="">
<blockquote type="cite" class="">Hi, codemakers.<br class="">
<br class="">
Most languages require all elements of an array to have a single data<br class="">
type, but I have a nagging suspicion that there is an exception or two.<br class="">
<br class="">
e.g. Apparently PHP allows mixed data types in its 'arrays' but I believe<br class="">
PHP 'arrays' are actually more like the lists found in Perl or Python and<br class="">
so are not classical arrays.<br class="">
<br class="">
Is there a language that allows true arrays with mixed data types?<br class="">
<br class="">
Cheers<br class="">
Mark<br class="">
<br class="">
--<br class="">
<br class="">
Before Facebook, how many people would take a picture of their dinner on<br class="">
a disposable camera, get the photos developed, then go round to your<br class="">
friends' houses and show them all the photo?<br class="">
<br class="">
--<br class="">
<br class="">
Mark Kelly<br class="">
<br class="">
http://vceit.com<br class="">
<br class="">
_______________________________________________<br class="">
http://www.edulists.com.au - FAQ, Subscribe, Unsubscribe<br class="">
IT Software Development Mailing List kindly supported by<br class="">
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment<br class="">
Authority and<br class="">
http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html<br class="">
http://www.vitta.org.au &nbsp;- VITTA Victorian Information Technology<br class="">
Teachers Association Inc<br class="">
http://www.swinburne.edu.au/ict/schools - Swinburne University<br class="">
<br class="">
</blockquote>
<br class="">
<br class="">
_______________________________________________<br class="">
http://www.edulists.com.au - FAQ, Subscribe, Unsubscribe<br class="">
IT Software Development Mailing List kindly supported by<br class="">
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment<br class="">
Authority and<br class="">
http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html<br class="">
http://www.vitta.org.au &nbsp;- VITTA Victorian Information Technology<br class="">
Teachers Association Inc<br class="">
http://www.swinburne.edu.au/ict/schools - Swinburne University<br class="">
<br class="">
</blockquote>
<br class="">
<br class="">
<br class="">
-- <br class="">
<br class="">
<blockquote type="cite" class="">
<blockquote type="cite" class="">Witty sig goes HERE &lt;&lt;<br class="">
</blockquote>
</blockquote>
<br class="">
Mark Kelly<br class="">
<br class="">
http://vceit.com<br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20150612/acd22574/attachment.html
<br class="">
<br class="">
------------------------------<br class="">
<br class="">
_______________________________________________<br class="">
sofdev mailing list<br class="">
sofdev@edulists.com.au<br class="">
http://www.edulists.com.au/mailman/listinfo/sofdev<br class="">
<br class="">
<br class="">
End of sofdev Digest, Vol 123, Issue 22<br class="">
***************************************<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<p></p><p><b>Important - </b>This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.</p>
</body>
</html>