Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
...or can I leave it up to the inferred thingy.

Swift language BTW.

Example:

var example : String = "Example"

or

var example = "Example"
Posted
Comments
[no name] 8-Jul-15 8:43am    
Which ever way you like.
James Wray 8-Jul-15 9:24am    
IS there a standard, say if someone else is to review my work? What might someone reading the code prefer to see?
Richard MacCutchan 8-Jul-15 9:24am    
You need to ask them. Different people use different standards, so you need to use the same one that your reviewers use.
[no name] 8-Jul-15 9:35am    
The standard is the one you define. All standards are, are personal preferences that other people agree to. If you like one way, use that until you work someplace that has actual written coding standards.
James Wray 8-Jul-15 9:37am    
Thanks to the both of you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900