canmove, Confirmed users
345
edits
| Line 5: | Line 5: | ||
* Certain syntax things are confusing for new users | * Certain syntax things are confusing for new users | ||
** Granted. But it seems that there would be a strong expectation that anyone programming in a particular language would be far beyond the "new user" stage before they attempted anything big/maintainable/etc -- regardless of the language being used. | ** Granted. But it seems that there would be a strong expectation that anyone programming in a particular language would be far beyond the "new user" stage before they attempted anything big/maintainable/etc -- regardless of the language being used. | ||
*** Ideally, but it's not always the case. And sometimes people have used Perl for years and still don't understand some of the things I listed on the page. But I do see your point there. -mkanat | |||
* Perl doesn't check the type of arguments to subroutines. | * Perl doesn't check the type of arguments to subroutines. | ||
** Given that it's a typeless language, what is there to check? | ** Given that it's a typeless language, what is there to check? | ||
*** Well, it'd be nice to be able to enforce that the argument was a particular class, or be able to enforce that a reference is an arrayref or hashref without having to do that manually. -mkanat | |||
* <tt>$$foo[1]</tt> and <tt>$foo->[1]</tt> mean the same thing. | * <tt>$$foo[1]</tt> and <tt>$foo->[1]</tt> mean the same thing. | ||
** This is analogous to a C/C++ construct where <tt>ix->member</tt> and <tt>(*ix).member</tt> mean the same thing. | ** This is analogous to a C/C++ construct where <tt>ix->member</tt> and <tt>(*ix).member</tt> mean the same thing. | ||
*** Yeah, which is also confusing in C to many people. :-) -mkanat | |||
* You can't make subroutines private in a class. | * You can't make subroutines private in a class. | ||
** Not true: | ** Not true: | ||
| Line 24: | Line 27: | ||
$private_method_ref->(); | $private_method_ref->(); | ||
} | } | ||
*** True, and I've seen that example many places. Not exactly intuitive, though. And does that work under mod_perl? | |||
== On Python cons == | == On Python cons == | ||