주석과 포맷팅
주석
주석이란?
주석을 사용하는 상황
// Copyright (C) 2021 ...// throughput을 늘리기 위해 스레드를 늘린다. for index in 0..<10 { // code }// 최종 결제 전 진행해야하는 validation 함수 func validateBuyable(wallet: Int, price: Int) { // code }// WARNING: API 서버가 항상 양호한지 알 수 없다. func connectAPIServer() { // code }
관용적으로 사용되는 키워드
포맷팅
Vertical Formatting
Horizontal Formatting
Last updated