Open MichaelRFairhurst opened 10 years ago
var Num?[] = []; return Num?[0];
or something. Should be combinable with [?x] typesafe array access, ie
[?x]
var Num[][] = []; return Num[?0]?[?1]; // get Num[0,1] or nothing
which breaks down as
Num[][]
Num[]?
Num[]
Num?
Although it'd be nice if it were prettier than Num[?0]?[?1] :)
Num[?0]?[?1]
Maybe it should be Num[0?][?0?]
Num[0?][?0?]
Why not .get() and .getSafe()? Make this a library problem.
or something. Should be combinable with
[?x]
typesafe array access, iewhich breaks down as
Num[][]
becomesNum[]?
Num[]
Num?
Although it'd be nice if it were prettier than
Num[?0]?[?1]
:)