[IronPython] Using blocks separators instead of indentation
Mohammad Tayseer
m_tayseer82 at yahoo.com
Mon Aug 13 17:16:25 CEST 2007
You can use VB, or IronRuby or Managed JScript. But Python, no way!!!!!!
Matt Clinton <mclinton at procard.com> wrote: Ori,
I'm pretty sure there isn't - that's a basic 'feature' of Python itself:
code blocks are defined by whitespace.
(one of many bug-reduction syntax features)
If you're working in VS, you'll often spend a little time highlighting a
block of rows then pulling down Edit - Advanced - Increase/Decrease
Indent
when refactoring.
Other editors (I'm fond of Crimson) make that even easier.
Maybe Dino and Team can / have implement(ed) something special so IP can
recognize blocks defined by curly-braces, but it would be rather
anti-pythonic to do so. Why do you need to?
Cheers,
-- Matt
-----Original Message-----
From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Ori
Sent: Monday, August 13, 2007 12:34 AM
To: users at lists.ironpython.com
Subject: [IronPython] Using blocks separators instead of indentation
Hello,
Is there a way to use code blocks (like { and } in other languages)
instead
of indentation?
Thanks,
Ori
--
View this message in context:
http://www.nabble.com/Using-blocks-separators-instead-of-indentation-tf4
259431.html#a12121490
Sent from the IronPython mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Mohammad Tayseer
http://spellcoder.com/blogs/tayseer
---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070813/faff478f/attachment.html>
More information about the Ironpython-users
mailing list