Re: [q-lang-users] New 'where' syntax
Brought to you by:
agraef
From: Eddie R. <ed...@bm...> - 2007-05-26 15:09:00
|
I went to the SoureForge Archives and saw this submission that I didn't get via email. Oh well. I copied the subject line so I hope it goes to the write spot. Albert Graef wrote, >But I have to admit that > >foo X where Y = bar X: = Y/2; > >doesn't read very well. I can live with it, since I read it as: "Define >foo X. First case, where Y = bar X: result is Y/2". Maybe you can get >used to it. But for native English speakers it might be too much to bear. To me, a native English speaker (Albeit southern dialect), the "where" and "if" clauses read just fine if the equation part is broken to the next line as foo X where Y = bar X: = Y/2; or even better foo X where Y = bar X: = Y/2; I'm sure the email won't preserve the indention though. I'm seriously considering changing my emacs mode to indent "=" on the lhs differently than than the introductory "=" part of the equation. I'm also considering changing the way nested "if then else" constructs within parenthesis currently indent. I would like them to indent like without ()s. Is this something other Q users would want? Eddie |