[nim-dev] Re: Proposal of new functions in stdlib

  • From: Arrrrrrrrr <fakemail@xxxxxxxxxxxxxx>
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Mon, 2 Nov 2015 21:00:01 +0000

I miss some convenient procs for bools:

```Nim
template `|=`[T](a: var T, b: T) = a = a or b
template `&=`[T](a: var T, b: T) = a = a and b
```

I dont like to write `myLongBool = myLongBool or myOtherBool`

Other related posts: