Yes, i missed that its already used as selector (just little scared using | in expressions, because its already used to define temps in methods and blocks). But i was after idea, no matter what symbol could be used for it.
#| is to me unreadeable... as #!
what about something composed #=>. I think it reflects quite well what the "pipe" is doing...
I like an idea because for me its obvious, that pipe operator will improve the code readability, and also helps type less when coding.
depends... not especially to me since we don't always easily see what the returned object... and as said previously I don't find | or ! "readable"
Also, sometimes , if expression became too long, its hard to find place where i must put open parenthesis, thats where 'pipe' can be really helpful.
first some says it's sign of code smell and second, code highlighting helps a bit in this area since it highlight the opening or closing parens. Also, don't forget indentation...
Maybe some people are soo intelligent, that they start typing expression from 2 or 3 opening parenthesis, because they already see how their expression will look like. Sorry then, I'm not so gifted to see full expression in mind, which can be about 10 lines of code. ;)
10 line is too much... ;)
actually, I've always find the pipe cool especially in linux but I don't find it obvious to understand... This said, I wouldn't mind having it in my image.
What about using #=>. Is it already used (not in my image)? possible ?
Cédrick