Hi Alexander,

Server commands have only one parameter (of type string). If you want
more structure, you have to parse that string. This will change in the
future to something more convenient, but I can't say when.

The Liquidsoap is inspired from functional programming in general (and
OCaml in particular) but the language syntax has nothing to do with
OCaml. So no, you can't learn OCaml to learn our syntax. However,
learning OCaml will make you more comfortable about static typing and
type inference errors. I don't know if this is crucial. More simply,
the lesson from your multiple-argument experience might be the
following: read and understand the type of functions (such as
server.register) and don't try to work around it (server.register says
it wants a function with only one argument, it means that only this is
supported).

Cheers,
--
David

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to