[Grammer] 07 - Naming Convention, 08 - Numbers

in swift4 •  6 years ago 
  • Naming Conventions(이름 정의 규칙)
  1. Camel Case : UpperCamelCase와 lowerCamelCase로 구분.
UpperCamelCase : Class, Structure, Enumeration, Extension, Protocol
lowerCamelCase: Variable, Constant, Function, Property, Parameter
  • Numbers
  1. Number Literals: 1, 1.2, 1.23e4,0xAp2, 1._000_000, 0b010011 등
    사이에 공백 불가.

  2. Number Types
    : Interger Types(Int8,Int16,Int32,Int64), Floating Point Types, Double Types
    음수가 필요없다면 앞에 U를 붙여 UInt를 사용.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!