Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Apocalypse 12

by Abigail-II (Bishop)
on Apr 19, 2004 at 07:58 UTC ( #346217=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Apocalypse 12
in thread Apocalypse 12

print 3 . 5; print 3.5;
I fail to see your point here. In the first line, there are 5 tokens, 'print', '3', '.', '5', and ';'. In the second line there are 3 tokens, 'print', '3.5', and ';'.

print "$foo{bar}"; print "$foo {bar}";
Indeed, and something that doesn't make me very happy. Luckely this is a problem that is usually found by the compiler, assuming you have 'strict' turned on, and don't have a scalar with the same name as the hash.
And yes, I know certain people hate it. They can write their own grammar.
Oh, I read that. Do you think that if people start writing their own grammars (of which I haven't seen any indication that it will be anything but hard to get it right) that that will produce maintainable code?

Abigail

Replies are listed 'Best First'.
Re: Re: Apocalypse 12
by Juerd (Abbot) on Apr 20, 2004 at 09:22 UTC

    Do you think that if people start writing their own grammars (of which I haven't seen any indication that it will be anything but hard to get it right) that that will produce maintainable code?

    Yes, I do. (And probably will have a grammar or bunch of macros of my own)

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

      So, on CPAN, we'll get Grammar::Juerd, Grammar::RandomPerlHacker, Grammar::Bleach, Grammar::Pony (might as well move them from ACME::), etc?

      Considering the confusion I've seen after posting a few programming snippets that used the defined-or operator, I don't share your opinion. But time will tell.

      Abigail

        Considering the confusion I've seen after posting a few programming snippets that used the defined-or operator, I don't share your opinion.

        Would there have been less confusion if the snippet had something like use Grammar::DefinedOps // //=; at the top?

        The Lisp world copes reasonably well with macros. Pop-11, a nice language I spent several years using, also allowed people to create their own syntax. Nothing terrible happened.

        Yes, the ability to mess with the language at the syntactic level moves from the language developers to the language users. This leads to idiotic language variations that everybody ignores, and clever language variations that everybody uses. If Pop-11 is anything to go by the the most useful will get adopted into the core.

        So, on CPAN, we'll get Grammar::Juerd, Grammar::RandomPerlHacker, Grammar::Bleach, Grammar::Pony (might as well move them from ACME::), etc?

        I'm hoping for Dialect::. I want to call my dialect Dialect::Perlego. (Read it however you want. Perl-eg-o (Esperanto for great pearl), Perl-ego, or Per-Lego)

        Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://346217]
help
Chatterbox?
SuicideJunkie replaces stale cookies with fresh on the platter on the sideboard.
[SuicideJunkie]: So, possibly interesting thing; I had that script which was using more than all the ram to open an absurdly large spreadsheet. I set it up to spin overnight nightly, so it stopped releasing memory since it was never fully exited.
[SuicideJunkie]: Didn't expect that to be a problem. There's plenty of disk space for swap, and the memory space would be reused the next day. But apparently virtualbox dies with a guru meditation when there's no physical memory unused on start.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-04-26 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (491 votes). Check out past polls.