You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not entirely sure how this would work internally but this would be the typical VBA approach.
seta.b=somethingleta.c=1
Allow column syntax [Some column] and include row property
Say you are looping through rows of a csv, it would be nice if we had a good way of accessing the columns of each row. The current easiest way to do this is with dictionaries:
stdLambda.Create("$1.item(""column 1"") + $1.col2").bind(row)'or with change 1:stdLambda.Create("(row)=>row.col1 + row.col2").bind(row)
This change proposes the addition of a row variable on stdLambda instances.
stdWindow is built in such a way that if the window no longer exists ProcessID will throw an error. This can be worked around with if statements to catch the error:
seteOut=wnds.Filter(stdLambda.Create("if $2.exists then $2.ProcessID = $1 else false").bind(proc.id))
Tasks
(a,b,c)=> ...
let a.b = ...
a.b := ...
(Is this still required?)[Some column]
and includerow
propertyAllow parameter names:
stdLambda.Create("(a,b,c) => a*b+c")
Not only has this been heavily requested, it would improve ease of use and it isn't too tricky to implement.
Allow vbLet | vbSet:
set a.b = something
,let a.c = true
One of the downfalls of lambdas so far is the inability to trigger vbLet/vbSet There are 2 options here:
Have a
let
operator e.g.:=
This is probably the easiest to implement:
Introduce a
let
anset
keyword:Not entirely sure how this would work internally but this would be the typical VBA approach.
Allow column syntax
[Some column]
and includerow
propertySay you are looping through rows of a csv, it would be nice if we had a good way of accessing the columns of each row. The current easiest way to do this is with dictionaries:
This change proposes the addition of a
row
variable onstdLambda
instances.Add try-catch
Say we are using stdWindow to search for ProcessIDs e.g.
stdWindow is built in such a way that if the window no longer exists
ProcessID
will throw an error. This can be worked around with if statements to catch the error:but it would be nice to have a try catch also:
Add short circuiting out of
OR
andAND
if a or b then
should immediately skip to then ifa
istrue
, without needing to checkb
.if a and b then ... else ...
should immediately skip to else ifa
isfalse
.The text was updated successfully, but these errors were encountered: