Allow service methods to omit return value #179
Labels
cat:lang
Category: Language design
cmp:compiler
Component: Compiler backend (e.g., annotation processors, code generators)
cmp:transport
Component: Transports
target:python
typ:enhance
Type: Enhancement/new feature
Currently service methods can't have void/unit/null return type. Forcing every method to return something may sensible when we didn't have errors (#38), but no more now. In certain scenarios, no news is good news and we can raise an error when something goes wrong.
A syntax I would suggest is to simply omit method's return type:
One more thing to consider is whether to force methods lacking return value to have error.
The text was updated successfully, but these errors were encountered: