Re: Resolved: NOT (w/ informal proof). --Was Re: Static vs. Dynamic typing (big advantage or not)---WAS: c.programming:OOP and memory management

From: Richard Riehle (adaworks_at_earthlink.net)
Date: 08/25/04


Date: Wed, 25 Aug 2004 16:03:32 GMT


"Thomas Gagne" <tgagne@wide-open-west.com> wrote in message
news:pNudnQoxMrhlDLHcRVn-tA@wideopenwest.com...
> >
> Thank goodess SQL isn't statically compiled. There's no way of telling
ahead
> of time what columns might be in the tuple until the SQL is written. It's
> only at runtime that it can be determined whether the column names the
> programmer referenced exist. And no one has a problem with that.
>
Static typing does not mean "inflexible."

In a language such as Ada, where the compiler checks a great
many things early in the development process, including the
legal usage of type instances, that checking is ensuring the
absence of certain kinds of errors. There may still be some
errors, but one has confidence that those errors that can be
evaluated by the compiler have been.

That same language needs to be able to interface with utility
software such as SQL. Although some might regard SQL
as a programming language, it is a language of very limited
range, albeit quite powerful for its intended purposes.

Further, the debate over whether a compiler should do
static [type] checking or not is actually quite silly. In
some circumstances, static checking is useful and contributes
to productivity as well as maintainability. At other times,
a more relaxed model is appropriate. The wise software
practitioner will learn, with education and experience, when
to choose the appropriate tools, and that will including
knowing when to use static checking on non-static checking.

Richard Riehle



Relevant Pages

  • Re: Object-oriented SQL statements
    ... through a low-level procedural language and a profoundly limited interface. ... Yet they say they have a happy marriage which confines them to the SQL ... involve the compiler directly (as opposed to class libraries). ...
    (comp.databases.theory)
  • Re: Generating SQL
    ... >> builds strings in another language for some other compiler to parse? ... > Abstraction is horrible? ... > SQL translator. ...
    (comp.object)
  • Re: CASE (or similar) in SQL
    ... But T-SQL is a simple one-pass ... compiler that does not optimize very well and you want to avoid any ... You mean, go buy SQL Server 2008,are you serious? ... You are not writing SQL yet, just forcing your old language ...
    (microsoft.public.sqlserver.programming)
  • Re: COBOL Compiler for Windows
    ... Windows is not MVS or zOS. ... EXEC SQL suchandsuch. ... Fujitsu do support ODBC access through a limited set of EXEC SQL ... If you had bought the Fujitsu v3 compiler then there would have been ...
    (comp.lang.cobol)
  • Re: updating through a loop statement
    ... We are talking about T-SQL, ... There is a WHILE loop in T-SQL ... Does the T-SQL compiler unroll a WHILE ...
    (microsoft.public.sqlserver.programming)