-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathideas.txt
More file actions
52 lines (34 loc) · 1.23 KB
/
ideas.txt
File metadata and controls
52 lines (34 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
structure:
- za dużo? można ciut wywalić
- rozwinąć skrót dsl
- ruby, nie raby
- o closurach za długo względem pozostałych rzeczy
- na początku wolno, potem za szybko, wyrównać prędkość
- błędy ortograficzne
- funkcje są specjalnym przypadkiem closurów
- zakresy Leszka -> powiedzieć, że są lepsze, bo mają 4 zakresy, a nie dwa, jak w Swifcie
- na koniec można powiedzieć o swift playground builder
-
) what is dsl and when should we use it and when should we not (!!!)
?) objective-c dsl
) tools: for syntax in syntaxes
* syntax + was it doable in objective-c
* use sample - github library
* possibilities and limitations
syntaxes = [
subscripts (with multiple and closure-based),
inout && tuples (class, struct, enums),
operator overloading (with association operators),
closures (with @auto_closure, trailing closure),
]
) mixing what we learned + generics
) when should we use it and when should we not
inout - w tym inout w operatorach (bo assignment)
operatory
switche - w tym ~= umożliwiające użycie
range .. i ... i ..< - nie da się (jeszcze?)
optional ? i ! - ?
@auto_closure
@noreturn
trailing closures
subscripty - możliwe jest dowolnie wiele takich subscriptów przyjmujących dowolne dane