I've done some work with Dart recently, and I thought that Nim could perhaps 
benefit from a look at their approach to null safety:

You can read about it here: <https://dart.dev/null-safety>

The syntax is so much better, in my opinion, as it is more minimal. For example 
in Nim you'd write:
    
    
      var abc: Option[string]
      
      if abc == none(string):
        abc = some("test")
    
    
    Run

The same code in Dart:
    
    
      String? abc;
      
      if (abc == null) {
        abc = "test"
      }
    
    
    Run

Going back to Nim I see my code is full of "some" and "none" keywords, where as 
Dart tries to minimize this syntax.

Is this something Nim could learn from? Nim 2.0 perhaps?

Reply via email to