br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Alternative non-string based constructors for various types #516

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Take for example the line type.

We can construct a line by provided 2 points as follows:
let $v1 := line("10.1234,11.1e-1 +10.2E-2,-11.22")

... but really, this looks awkward (especially the space in the middle to 
separate the points!).

A constructor involving number literals seems more natural:

let $v1 := line(10.123, 11.1e-1, +10.2E-2, -11.22)

Original issue reported on code.google.com by zheilb...@gmail.com on 6 Jun 2013 at 6:01