|
|
|
|
|
by frodowtf
1121 days ago
|
|
Good effort. It feels like there is still a lot of improvement space for languages with a soundness+productivity focus. Docs need some polishing tough. The comparison to other languages doesn't make the point of Ki clear to me. Also, error handling feels like black-box magic with all those exclamation and question marks sprinkled everywhere. Those symbols seem vaguely chosen. |
|
!? provides an alternative value when the function errors
!! exits the current scope on an error, e.g. return,continue,exit,...
It doesnt seem that complex. Ofcourse, there is also '??' and '?!'. That might make it more difficult. It's not vague actually. if it starts with '!', it's a function error handler. if it starts with '?', it's a null-check.