For Programmers: Free Programming Magazines  


Home > Archive > Scheme > July 2006 > Re: What is Expressiveness in a Computer Language









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: What is Expressiveness in a Computer Language
Joe Marshall

2006-07-07, 7:01 pm


Shriram Krishnamurthi wrote:
> Joe Marshall said:
>
>
> But you do give the computer hints all the time. Every time you write
> down the value 3, you tell the computer you want a number. When you
> write down (cons 'x (cons 'y empty)), you tell the computer you want a
> list of symbols. There are hints all over your program. And these
> hints are just what a type inference engine picks up.


Of course I don't mind these! What I object to is mindlessly typing
String myString = new String();

You think the compiler might understand I want a string? Should I tell
it a few more times?

>
>
> Red herring. Type inference is, what, one of the truly great ideas of
> computer science. You don't need to declare types.


Says you. Try leaving out the types in Java or C++ and see how far it
gets you.

Yeah, I understand that Java and C++ are primitive with regard to type
technology, but languages with sophisticated type inference are even
*less* popular than Lisp!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com