https://toitlang.org/ logo
Generally, I would say: - services are more flexib...
# general
f
Generally, I would say: - services are more flexible. They allow to exchange parts without needing to change the actual program. - they put more work on the API, but once it's there, it's easier to use (See the
sensors
package). - they make it possible to "override" services by just installing a higher-priority one. (Artemis uses this to implement a network manager that opens the cellular driver when a user does a
net.open
). However, they are less efficient. Even for the
sensor
package, I expect users to start prototyping with the services, and then merge the drivers into their applications once they optimize. At least if it makes a difference for them.