Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jerf
on April 25, 2013
|
parent
|
context
|
favorite
| on:
A taste of Rust
I've written a lot of Python too. When I need to span lines, usually there's an easy way to use parens to do
blahblah = long().invocation_of.something(with, lots, of, parameters)
which is generally more idiomatic. (Of course one wishes to avoid long lines at all but that's not always possible.)
alcuadrado
on April 25, 2013
[–]
I found that parnes rule used as an awful hack a lot of times. I use it only when the parens are naturally placed, but there are people that just add two parens to avoid one backslash... completely insane!
kzrdude
on April 25, 2013
|
parent
[–]
How is the backslash better? The parantheses can stay if you join two lines or split them.
loqi
on April 25, 2013
|
root
|
parent
[–]
Yup, and parens also allow comments.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: