[IronPython] Using blocks separators instead of indentation

Dino Viehland dinov at exchange.microsoft.com
Mon Aug 13 17:28:43 CEST 2007


This is the extend part of embrace and extend everyone's expecting?  :) I wouldn't be hold my breath waiting for this feature.

(BTW, I use Shift-Tab/Tab to dedent/indent in VS).

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Matt Clinton
Sent: Monday, August 13, 2007 7:54 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Using blocks separators instead of indentation

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



More information about the Ironpython-users mailing list