ClojureDart
ClojureDart copied to clipboard
Error when non-nullable optional
Original report: https://clojurians.slack.com/archives/C03A6GE8D32/p1679998004285439
We assign null as the default default for all optionals, even when their types are not nullable. This cause errors during compilation of the generated Dart code.
We should catch this error before Dart.
we looked at this few months ago with the analyzer. But it's impossible to tell of the default value is from a private lib or not. I guess your idea is to throw if user has not put a default value?