Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

perl has no function arg list

Name: Anonymous 2012-12-20 5:11

Im learning a little perl and everything about perl is done in the worst and most convoluted way. Prime example being that function definitions dont have an argument list but rather an implicit list that is extracted from within the function by @_.
Why is there no explicitly declared parameter list. I got banned from #perl on freenode for asking this.

Name: Anonymous 2012-12-20 20:31

>>3
Can you please explain how argument lists extracted from @_ is the worst and most convoluted way of doing this? Seems simple and effective to me.
how would you look up function definitions for perl? you have to read through the code of the function to find what to pass to it. why cant there just be argument lists so you know at a glance what functions take so you know how to extend a script?

>>5
At least Perl lets you distinguish between text and data structures.
which is the second most stupid thing about perl, you cant have nested structures in perl because the variable type says it can only be data or a structure, so you have to use those stupid references to be able to create a nested structure. this also makes declarations more complicated and you have to declare arrays or hashes as a sequence, it takes special syntax to declare an explicit array or hash

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List