Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^8: Perl vs C

by ikegami (Patriarch)
on Mar 16, 2009 at 15:06 UTC ( [id://750913]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Perl vs C
in thread Perl vs C

I think the main point here is that in Perl, an variable like: @array is very different than a C, Basic, Fortran or what ever array.

The only difference is that it can change in size, like in C++ (vector), Java (Array), JavaScript (Array), .NET (ArrayList).

Since you summarized your point, I'll do the same. Redefining commonly used terms (particularly the already overloaded term "list") doesn't help at all, and greatly hinders communication to the point where you're spreading misinformation.

  • There's no such thing as lists of lists in Perl. (1,2,(3,4,5),6,7) is the same thing as (1,2,3,4,5,6,7).
  • You can't use push or shift on a list. It results in a syntax error.

If you absolutely must have another name for arrays, consider using vector (as per C++). Still confusing, but not nearly as ambiguous.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://750913]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2026-02-18 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.