4 ms·
After generics (coming soon), a proper sum type and then I'll shut up.
by alkonaut 5y ago
After generics (coming soon), a proper sum type and then I'll shut up.
- qaq 5y agosame :) maybe also relax rules a bit to allow type elision for structs in function calls to get python like keyword args. foo("blah", {option1: true}) would work better than functional options people use now.
- 13415 5y agoI think they should freeze the language for the next 10 years or so.
- qaq 5y agoafter above 2 changes sure :)
- collinvandyck76 5y agoThis would be lovely
- erik_seaberg 5y agoI just want to write f(g(), h()) without nine lines of useless noise that editors don’t know how to hide. I guess it might be possible to write a generic function that uses panic/defer to return an error from a subexpression.
- zmj 5y agoNobody woken up in the middle of the night to debug your code wants you to write that.