Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Can't construct an empty vector? #160

Open
bredelings opened this issue Jun 21, 2019 · 1 comment
Open

Can't construct an empty vector? #160

bredelings opened this issue Jun 21, 2019 · 1 comment

Comments

@bredelings
Copy link
Contributor

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
Copy link
Member

jembrown commented Oct 5, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants