일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- philipshue
- 문법
- flutter
- Xcode
- LifeCycle
- weatherkit
- network
- GIT
- EventLoop
- swift
- chartsorg
- Architecture
- URLSession
- dgcharts
- OpenAI
- SwiftUI
- tuist
- AppleDeveloper
- dartz
- WWDC24
- raspberrypi5
- uikit
- designpattern
- isolate
- WebSocket
- dart
- builder
- embedded-swift
- SampleApp
- iot
Archives
- Today
- Total
Jaebi의 Binary는 호남선
Swift와 Dart 문법 차이 본문
Dart | Swift | |
Type Annotation | `Double myDouble` | `let myDouble: Double` |
String declaration | `String myString = 'hi'` | `var myString: String = "hi"` |
String interpolation | `'${value}'` | `“\(value)"` |
Function | `String greet(String msg) {}` | `func greet(msg: String) -> String {}` |
Function with implicit return | `String greet() => "hi"` | `func greet() -> String {"hi"}` |
Schedule code to be executed when current scope is exited | `defer` | `finally` |
'공부' 카테고리의 다른 글
TDD - Test Driven Development (0) | 2024.06.01 |
---|---|
Flutter - Isolate & Event Loop (0) | 2024.06.01 |
Behavioral Patterns - Template (0) | 2024.06.01 |
Behavioral Patterns - Adapter (0) | 2024.06.01 |
Structural Patterns - Adapter (0) | 2024.06.01 |