in reply to Re^5: Syntax checking without BEGIN blocks
in thread Syntax checking without BEGIN blocks

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^6: Syntax checking without BEGIN blocks

Replies are listed 'Best First'.
Re^7: Syntax checking without BEGIN blocks
by chromatic (Archbishop) on Apr 29, 2006 at 18:49 UTC
    ...the perl program uses dangerous, deprecated features...

    Hm, isn't deprecation the decision of Larry and the pumpkings? You are which of those people again?

    ... impossible to write even the most basic of tools...

    Did you read my first reply to this thread? I wrote a module that shows how you can prevent Perl from running this code and it uses the very features you decry.

    If perl can't do that, perl should be fixed until it can.

    Patches welcome. Wrongheaded patches not. Anonyperl fork permissible.

    ... when are all these dynamic mis-features going to be removed from the language, so that all the necessary productivity tools to prove correctness and language safety can be developed?

    Perhaps when proof-carrying code and compile-time provability proves itself workable for real-world problems that do dangerous things such as reading data with contents unknown at compile and analysis time.

    In the meantime, there's Haskell and ML (not that either of them do it fully either -- why even the amazing Haskell type inferencer praised by fanboys the world over can't catch a simple mathematical impossibility in a seven-line function with no operations more complex than multiplication, division, and recursion).

    No one is writing those sorts of tools...

    Completely untrue and misinformed. I have written such tools. jjore has written such tools. Alias has written such tools.

    Besides that, you're no one. Why not you?

    I don't know why anyone thought added "symbol table magic" to code was a good idea when the cost is uncheckable code.

    If software development had waited until practical provability were possible, I'd be sending this message by turning cranks on a gear-driven machine. Think about the features you have to remove from a general-purpose near-Turing device to perform static flow analysis -- then think about how unsuitable such a device is for general purpose computing.

    That is why.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^7: Syntax checking without BEGIN blocks
by john_oshea (Priest) on Apr 29, 2006 at 17:35 UTC

    If you really want Perl to do all that you've mentioned, I think you'll find what you're looking for here. Personally, I'd much rather that use of Perl made me supremely intelligent, fabulously rich, and irresistible to, well, anyone I wanted. Oh, and came with a pony. Anything else just isn't worth it. But, hey, each to their own right?