일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- chartsorg
- raspberrypi5
- isolate
- iot
- EventLoop
- LifeCycle
- dart
- SwiftUI
- OpenAI
- URLSession
- embedded-swift
- network
- Architecture
- uikit
- GIT
- AppleDeveloper
- dgcharts
- swift
- WWDC24
- SampleApp
- builder
- designpattern
- dartz
- philipshue
- WebSocket
- tuist
- flutter
- weatherkit
- Xcode
- 문법
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 |