분류 전체보기23 Swift: A Swift Tour - Control Flow Use if and switch to make conditionals, and use for-in, while, and repeat-while to make loops.= 'if'와 'switch'를 사용해서 조건을 만들고, 'for-in', 'while', 그리고 'repeat-while'를 사용해서 루프를 만든다Parentheses around the condition or loop variable are optional.= 조건이나 루프 변수 주위의 괄호는 선택사항이다Braces around the body are required.= 바디 부분을 둘러싼 중괄호는 필수다In an if statement, the conditional must be a Boolean expression= if 구문에서 .. 2023. 4. 10. Swift: A Swift Tour - Simple Values - You don’t need to import a separate library for functionality like input/output or string handling.= 입출력 또는 문자열 처리와 같은 기능을 위해 별도의 라이브러리를 가져올 필요가 없다- Code written at global scope is used as the entry point for the program, so you don’t need a main() function.= 전역 범위에서 쓰여진 코드는 프로그램의 진입점으로 사용되기에, main() 함수가 필요없다 - You also don’t need to write semicolons at the end of every statement.= 모든 구문의 끝에.. 2023. 4. 7. Swift: About Swift - It’s an industrial-quality programming language that’s as expressive and enjoyable as a scripting language= 스위프트는 스크립트 언어만큼 표현력있고 즐거운 산업 품질 프로그래밍 언어이다(스크립트 언어처럼 사용할 수 있지만 스크립트 언어는 아니다) - Swift defines away large classes of common programming errors by adopting modern programming patterns= 스위프트는 최신 프로그래밍 패턴을 채택해서 많은 클래스의 흔한 프로그래밍 에러를 정의한다Variables are always initialized before use.= 변수는 항상 사용전에.. 2023. 4. 6. 이전 1 ··· 3 4 5 6 다음