Dynamic language

Paulo Pinto pjmlp at progtools.org
Fri Mar 16 02:09:43 PDT 2012


To be fair Python is not alone, all the ML languages (Ocaml, Haskell, F#, 
...) also work that way.

F# was even funnier. While the language was experimental the default mode 
was still like most
languages, and a "#light" mode was available, similar to what ML-like 
languages have.

Due to the amount of feedback received, by the time F# was an official MSVC 
language, the indentation
based "#light" mode was the default.

--
Paulo

"H. S. Teoh"  wrote in message 
news:mailman.712.1331843803.4860.digitalmars-d at puremagic.com...

On Thu, Mar 15, 2012 at 03:24:24PM -0400, Nick Sabalausky wrote:
[...]
> - If you can stomach the indent-scoping, Python is very well-regarded
> and has a lot of fancy advanced features.

I used to despise Python's indent-scoping too, though since then I've
had some opportunity to use Python for build scripts (google for SCons),
and I have to say that it certainly has its own kind of beauty to it.
You never have to worry about closing blocks in if statements and the
like, for example, and you never have subtle bugs like:

auto func(bool x) {
int y=0;
if (x)
y = 1;
writeln("x is true");

return y;
}

But I certainly sympathize with the WAT sentiment when one first learns
that Python has indent scoping. :-)

(...) cutted 



More information about the Digitalmars-d mailing list