Re: [q-lang-users] New 'where' syntax
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2007-05-25 17:04:58
|
Eddie Rucker wrote: > Super Cool! So we already have two thumbs up now, nice. :) Did anyone find any bugs/flaws/gripes with the syntax yet? Ok, I guess it's about time for a first release candidate now. I'll do that as soon as I've updated the documentation. > This is clean. It is like most other programming languages: introduce the > local variable and initialize it before use. I think this will make it > easier for people comming from other languages. Right, but note that the similarity is mostly syntactical. Q's 'where' clauses will still feel unfamiliar to most programmers because: (1) those local variables aren't really mutable (although they may be rebound); (2) 'where' clauses are both variable bindings *and* conditions (if a pattern match fails in a variable binding, the entire equation fails); (3) collections of several 'if' and 'where' clauses are processed in a "backward" fashion, consider e.g.: if X>Y where Y=bla Z where Z=foo X. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |