Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Spoken Perl: and && or what?

by synapse0 (Pilgrim)
on Jul 29, 2001 at 13:39 UTC ( #100665=note: print w/replies, xml ) Need Help??

in reply to Spoken Perl: and || && or what?

My thoughts on it would be to use such code in terms of IF .. THEN .. with variance for further understanding.. As an example, using your examples, the m// && print; bascially breaks down into "if blah matches then print", if it were used in an if like if (m// && print) { do whatever; } it would turn into "if blah matches and print succeeds, then do whatever".
In your second example, it turns into "if production is false then if debugging is true, print or else dont print" or if it was used as an if like  if ($production || $debugging && print) { do whatever; } then it turns into "if production is true or debugging is true and print succeeds, then do whatever"... (I'm under the assumption here that precedence makes that statement ($production || ($debugging && print)) )
basically, they are still if then statements..

Replies are listed 'Best First'.
Re: Re: Spoken Perl: and && or what?
by John M. Dlugosz (Monsignor) on Jul 30, 2001 at 02:58 UTC
    If you're going to basically translate the entire meaning of the statement into another language, as opposed to transliterate the individual symbols, check out Conway's Roman module for ideas. He wrote a thing to program in Latin. All the punctuation marks and stuff are gone, and it uses only grammatically correct Latin sentences.

      For the uninformed, that's Lingua::Romana::Perligata, and it's a sight to behold.

      If (by some chance) you don't speak Latin (what do they teach them in these schools?), then you might be interested in Lingua::tlhInganHol::yIghun. Unfortunately, I can't read the release status, but it's definitely not on CPAN yet. ;-)

      If God had meant us to fly, he would *never* have given us the railroads.
          --Michael Flanders

        And for those who can't read tlhIngan ("Klingon") either, the word "yIghun" means "computer program".

        Check out pojwI' (literally, "analyser") for the ultimate word processing environment and dictionary tool for Klingonists.


        Unfortunately, I can't read the release status,

        (what do they teach them in these schools?)
        The description says ghunmeH pIqaD yIlo' which means “Use the Klingon writing system for programming.” The release status is ngoq wa'DIch which means literally, “the first code” and is not a complete sentence, but I suppose he means Alpha, beyond Planning, based on the English values for this enumeration.

        I look forward to it, especially if his filter will handle the Klingon character set. It would need a pragma to specify the range of character codes used, since the Unicode proposal is not ratified yet and the Linux kernel uses a different range, and there is also a quasi-standard where they are located in the user-defined range. (IOW, it's a real mess now)


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2023-01-29 06:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found