revbayes / revbayes.archive

GNU General Public License v3.0
68 stars 37 forks source link

Can't construct an empty vector? #160

Open bredelings opened 5 years ago

bredelings commented 5 years ago

Hi, it appears that it is not possible to construct an empty vector.

> v()
   Error:   No overloaded function 'v' matches for arguments ( )
   Potentially matching functions are:
   v (Integer<any> ,
      Integer ...)
...

Also,

> x = []
   Syntax error while reading character ']' at position 6 in command:
   x = []

Is this because it would not be clear what the type of the vector would be?

jembrown commented 5 years ago

I want to second this issue. I was just writing a Rev script and ran into this problem. I had to do some convoluted things to work around.