Csound Csound-dev Csound-tekno Search About

Re: if...

Date1999-02-24 07:44
FromMikael Hillborg
SubjectRe: if...
Aaron Isaksen wrote:
> 
> > I absolutely agree a "statement" block would help to make the code more readable
> > and elegant. Too much goto´s are never advisable,
> > and it doesn´t look too serious really. It makes Csound code seem an
> > oldfashioned language ;-)
> 
> Why not make the parser understand c-like syntax?
> 
> aout = balance(x,y,z); // comment
> 
> instead of assemblyesque
> aout    balance         x,y,z ; comment
> 
> -Aaron

Cannot this be done with macros ? Or are user defined macros not
available in Csound ? (then maybe it should be available ?) 
Maybe this wouldn't allow nested calls etc but it could help a bit. 

About the discussion of mixing different programming paradigms,
it's not good to mix too much but even a language like LISP 
doesn't follow the functional paradigm to 100%. The PROGN statement 
allows you to write an entire LISP program in a procedural/imperative 
style. In C you can program functional. And with the ! (cut) operator 
in Prolog, you can cut away evaluation paths and program (kind of) 
procedural.

:)