[Swift] 주석, print 함수, dump 함수
![post-thumbnail](https://velog.velcdn.com/images/un1945/post/7567254f-b703-4d91-bbce-8bed53371f1a/%E1%84%87%E1%85%A6%E1%86%AF%E1%84%85%E1%85%A9%E1%84%80%E1%85%B3%E1%84%8B%E1%85%AD%E1%86%BC%20%E1%84%80%E1%85%B3%E1%86%AF%E1%84%8C%E1%85%A1104_30-001%20(1).png)
- Single line comment
- 한 줄 주석을 달 수 있다.
var str = "Hello, World"
- Multi line comment
- 원하는 줄 사이로 주석을 달 수 있다.
var str = "Hello, World"
- Inline comment
- 코드 사이에 주석을 달 수 있다.
var str = "Hello, World"
세미콜론 ;
- Swift에서는 세미콜론을 사용하지 않아도 된다.
- 다만, 여러 명령을 한줄에 쓸 때만 제한적으로 사용하기도 함.
print 함수 - dump함수
- print 함수
- 단순문자열 출력
- dump 함수
- 단순문자열 출력 + 객체에 대한 자세한 설명 출력
print(str)
dump(str)