algebaric operations on a RegEx?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Apr 15 18:25:04 UTC 2009


On Wed, Apr 15, 2009 at 12:18:34PM -0400, S P Arif Sahari Wibowo wrote:
> So, in short, Python need smart editor. :-) Basically Python has too much 
> requirement, too restrictive in the way I don't think matter for 
> programming. Note that this come from somebody who like to code in 
> Pascal.

No my point was that python doesn't require anything other languages
don't require.  Life is easier with a good editor.  I write python in
vim, which I would hardly call a smart editor, at least not with the
features I use.

Python just mandates consistent indentation as part of being valid syntax.
If you are already always consistent in your indentation then python
causes no problems at all.

> One additional step I don't need in other language.

Except you must know how to do that to maintain consistent indentation
there if you move a block.  Now if you then say that you don't use
consistent indentation in that case, then I will call you a bad
programmer. :)

> And then let's parted peacefully at this point. :-) I am relying on one 
> liner to do day to day calculator work.

And python decided to be completely consistent and hence not allow
such things.  I use them too in perl at times, but almost never in C.

Forced consistency in the interest of reducing the possibility of making
mistakes is actually not a bad thing.  It did put me off python initially
and it was many years before I bothered looking at it, because I too
though "No one is going to tell me how to indent my code".

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list