question: method return status values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all, 
	as I said time ago sometime there are problems to use return values
from methods.

The problem is IMHO that we have too many return string for each method,
for example, command.run return a list with [status, output and error].
command.example return only a true/false value.
virt.list return only a list of machines, if there is a problem with XEN
or something else it return an exception...

I think the unification of all return string structure is a task to do,
maybe now can be appear as a waste of time but now we have a relatively
small amount of code, but in future, may be critical.

I tried to modify my local installation but I found some troubles
because some methods don't need a status, I guess we can create a fake
of return status for these methods. what do you think? 

This is not so usable if you try to build an application around func,
because you have to customize each call to each method are you using.

What do you think about this?

thanks 
Luca

-- 
Today is Setting Orange, the 14th day of Confusion in the YOLD 3174

Are we THERE yet?

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux