"Anyway, I find other programming languages as fascinating as I do other human languages, and think the landscape would be barren and ugly without them."
Smalltalk, lacking in constructs but beautiful none-the-less :O) Ade -----Original Message----- From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED] Sent: 27 March 2005 19:14 To: CF-Talk Subject: Re: just noticed this when validating email I do see your point... and further, I still disagree... With all due respect, && is the AND comparison operator. And == is the IS comparison operator. My point was that JS isn't all that hard to read and write once you learn it. My new point is that if all languages were as easy to write as CF, the world would be a very boring place. It's kind of like asserting that the world would be a better place if everyone spoke English, and nothing but English. Sounds kinda blah. Especially since other languages contain idiomatic expressions that convey a nuance that's impossible to convey in English, as English does with some things that other languages don't. += would be a nice operator to have in CF... and yet it must be said with i=1+1... hence some things are easier to write in JS than in CF. And for me, often, I'd *rather* use JS-style syntax in CFSCRIPT. Why? Because the JS syntax is more concise, and in general faster (though CFSCRIPT no longer provides better performance per se, the concise code it can produce reduces the code written under some circumstances). Also, your example isn't entirely fair, because you left out the whole example in CF and wrote the whole example in JS: <table> <cfloop condition="i LTE arrayLen(g)"> <cfset calpercentage = round(g[i][1]*100/total)> <cfset calwidth = round(gwidth*(calpercentage*100)) <cfoutput> <tr><td>#round(g[i][0])#</td><td><img src="#graphimage#" width="#calwidth#" height="10">#calpercentage#%</td></tr> </cfoutput> <cfset i = i+1> </cfloop> </table> And, if someone wanted to use cfscript for this task, it could be done exactly as JS does it with very minimal alterations: <cfscript> output = "<table>"; while (i lte arrayLen(g)) { calpercentage = round(g[i][1]*100/total); calwidth = round(gwidth*(calpercentage*100)); output = output & "<tr><td>" & round(g[i][0]) & "</td><td><img src='" & graphimage & "' width='" & calwidth & "' height='10'>" & calpercentage & "%</td></tr>"; } output = output & "</table>"; writeOutput(output); </cfscript> So, it's not so simple as CF is a more natural language... were it not for Java, which looks almost exactly like JS, there WOULD BE no CF. And had it not been for C++, which was the original language that CF was written in, it would never have gotten started at all. CF is a high-level productivity-layer language that works well for its appointed tasks, and yeah, it might be great if everything worked that way... but I doubt it. Since, if nothing else, there's a certain amount of overhead that goes with turning human-readable code into machine-executable code, there would probably be a huge cost involved at runtime... whereas since CF is built in layers, the underlying layers are very close to the surface and provide that conversion quite quickly AND only once, in general, because it's only recompliled when changes are made (generally speaking). Anyway, I find other programming languages as fascinating as I do other human languages, and think the landscape would be barren and ugly without them. Laterz, J -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200138 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54