[
http://dev.sourcefabric.org/browse/LS-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359#action_15359
]
David Baelde commented on LS-488:
---------------------------------
I'm happy not to do JSON now, we don't have time. But when we switch to JSON,
we don't have to think about backward compatibility, and it doesn't seem that
difficult. We have type constraints for ordered types, we could have a similar
one for JSON-printable ones -- or we could arrange to print all values, as it
actually is the case currently. From there, a server command just outputs a
value, and the server infrastructure takes care of printing it. The only
difficulty lies in parsing the *input* of commands in my opinion. We could keep
a string there: it's not too painful with current commands, I don't know if
it'd become a limitation in the future.
> BEGIN in server command outputs
> -------------------------------
>
> Key: LS-488
> URL: http://dev.sourcefabric.org/browse/LS-488
> Project: Liquidsoap
> Issue Type: Bug
> Components: Liquidsoap
> Reporter: David Baelde
> Assignee: Romain Beauxis
>
> Telnet commands have always ended with an END marker, which is convenient for
> parsing using common Telnet libraries. However, with the introduction of the
> new monadic style at r8032, a BEGIN marker has been added at the beginning of
> the output. I'm not against it, in fact I initially thought I was the author
> of this change... However, it breaks all scripts that interact with
> liquidsoap's telnet (our perl and ruby examples, as well as third-party PHP
> code) so I think it might be a good idea to revert. The other option in my
> opinion is to go for a more radical change: have commands produce a
> structured object as output, which could be printed in json syntax.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl