Skip to content

Commit 1c22dee

Browse files
committed
2 parents 4cf048f + 1494264 commit 1c22dee

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
See more:
2+
- <https://ninmonkeys.com/blog/2024/06/04/what-not-to-do-in-power-query/>
3+
4+
Whitespace between function calls and the name are allowed. Including newlines.
5+
These are identical statements:
6+
7+
```ts
8+
= DoStuff( args )
9+
= DoStuff
10+
11+
( args )
12+
```
13+
Record lookups also allow whitespace
14+
15+
This is totally valid: ( Syntactically valid, not morally )
16+
17+
```ts
18+
let
19+
Func = () => [
20+
user = [ Name = "bob" ]
21+
]
22+
in
23+
Func
24+
25+
26+
(
27+
28+
)[
29+
user
30+
31+
32+
33+
]
34+
```
35+
###
36+
37+
```powerquery
38+
let
39+
SomeConfig = [ user = "bob", region = "north" ],
40+
CopyRecord = SomeConfig /* stuff */ [ region ]
41+
,Name = CopyRecord[user]?
42+
in
43+
Name
44+
```
45+
46+

0 commit comments

Comments
 (0)