Re: kanjidic parser in Perl?



"John J. Chew, III" <jjchew@xxxxxxxxxxxxxxxx> writes:

| > sub kdic::parse_entry
|
| sub parse_entry ($) {
|
| Always use prototypes.

I believe this advice to be counterproductive.

Tom Christiansen once posted a nice write-up of "prototypes" in perl:

<URL:
http://groups.google.com/group/comp.lang.perl.modules/msg/84484de5eb01085b >

(I believe the things he discusses under "BUGS" has been fixed in
newer perls though)


--
David,
.



Relevant Pages

  • Re: kanjidic parser in Perl?
    ... they give programmers a false sense of security, because they only catch argument type and number errors under some circumstances and not others. ... that he make a point of including prototyped sub declarations ... I myself have found prototypes to be extremely valuable, ... John Chew http://www.poslfit.com ...
    (sci.lang.japan)
  • run time error 2465 / Form issue - continue
    ... I need another advice. ... This is my second email on the topic. ... If [Plan Participants] is in another table, then you must look up its value ... >>> Private Sub PYE_AfterUpdate ...
    (microsoft.public.access.modulesdaovba)
  • Re: Sweetest Accessor?
    ... care for mixing shift and @_ in the same sub -- visually. ... That isn't tied to shifting. ... You can't throw prototypes into an OO design. ...
    (comp.lang.perl.misc)
  • Re: IO::Socket::INET on OSX or TCP stack problem
    ... just declaring vars outside a sub makes them static. ... SG> I am using perl -w - I dont usually, but while I am trying to figure ... SG> perl -w complains if you don't use prototypes. ... perl doesn't complain if you don't use prototypes. ...
    (comp.lang.perl.misc)
  • Re: Possible Trojan?
    ... If he just blocks that IP range, couldn't anyone else with the Sub 7 client ... > That actually isn't bad advice, ... > from something that appears to be an ongoing problem while he figures out ...
    (alt.computer.security)