Re: ANN: Dao Language v.0.9.6-beta is release!



Tom Anderson wrote:
> Which is not to say that it's a bad idea - if it really is scaring off
> potential converts, then a dumbed-down dialect of python which uses curly
> brackets and semicolons might be a useful evangelical tool.

If we're going to be creating evangelical tools, I think a decent
description or tutorial explaining why scoping through indentation is a
better idea, rather than capitulating to the ignorance of those who
won't try something different.

If you repeat a piece of functionality, you factor it out into a single
function.
If you repeat a piece of data, you normalise it into a separate table
or object.
If you consistently find yourself having to enter a new scope and
indent at the same time, and close scopes and unindenting at the same
time, the sensible approach is to combine these concepts into one.

Surely any programmer worthy of the term can see benefits to the
approach when it is not just mentioned as a bizarre and arbitrary
limitation of the language.

--
Ben Sizer

.



Relevant Pages

  • Language improvement: Add scope to class member fields
    ... times subsets of functionality where only certain methods should have access ... Where scope can organize a set of methods with access to particular variables. ... Compiler errors WXS123, 2006-05-25 ... When you have a team of developers adding functionality to ...
    (microsoft.public.dotnet.languages.csharp)
  • Pythonic indentation (or: beating a dead horse)
    ... I'm a bit of a Ruby Nuby who's ... any Python fan who wants to deride "monkeypatching" can shove it. ... and now I think that using indentation to define scope is ...
    (comp.lang.ruby)
  • Re: ANN: Dao Language v.0.9.6-beta is release!
    ... However I would argue that indented scope is one way of ... Scope is instantly visible, and no longer a game of 'hunt the ... >> There are situations in which indentation is not that visible. ... class will still be spread over several pages. ...
    (comp.lang.python)
  • Re: Row 1 to repeat at top help
    ... The "Range Selector" functionality as you describe is indeed present in Office X. ... The triangle is what I'm referring to as a "Range Selector" button. ... Bob Jones Office:Mac ... In short I just want to repeat row 1. ...
    (microsoft.public.mac.office.excel)
  • Re: For review: PEP 343: Anonymous Block Redux and Generator Enhancements
    ... the indentation layout, as with indentation syntax. ... some scope, but I feel that Python newcomers usually do the opposite error instead, thinking their variables have a defined scope as in some other languages. ... code for the number of try/finally blocks. ... Python code and my C++ ...
    (comp.lang.python)