Re:Making Coffeescript’s Whitespace More Significant
by thedufer on Wednesday November 30, 2011 @09:04PM
(#3297941)
Wait, so you reconstruct the end delimiter using pass? That's one of the least-pythonic things I've ever seen. I really don't see how this could end up being a problem - doing a block indent shouldn't be this difficult.
[ Parent
| on HN ]
Re:Making Coffeescript’s Whitespace More Significant
by lisper on Wednesday November 30, 2011 @09:37PM
(#3298036)
> Wait, so you reconstruct the end delimiter using pass?
Yes.
> That's one of the least-pythonic things I've ever seen.
What can I say? It works.
> I really don't see how this could end up being a problem
Do you use emacs? Open up two windows, each with an emacs editing some python code in python mode. Cut and paste some code from one window into the other.
Re:Making Coffeescript’s Whitespace More Significant
by thedufer on Wednesday November 30, 2011 @10:28PM
(#3298168)
I don't use emacs, but I use vim, and I suspect I've seen the problem you're talking about. Its the one where auto-indent puts extra indentation in pasted code? This is a problem of not knowing how to use your editor. For example, in vim I either open files in tabs (and use the vim yank buffer/clipboard) in the same editor, or go into `paste` mode to paste from the OS clipboard. I'm not sure what the solution is in emacs, but I guarantee there is one.