1.

How Multiple Line Comment Can Be Written In Swift?

Answer»

The Nested multiline comments ENABLE you to comment out large blocks of code QUICKLY and easily.

Use an opening (/*: ) and CLOSING ( */) comment and it LOOKS like -

/*:

The above forward slash (/) and an asterisk (*) then a COLON (:) is opening comment - (/*:)

The below an asterisk (*) and forward slash is closing comment – (*))

*/

The Nested multiline comments enable you to comment out large blocks of code quickly and easily.

Use an opening (/*: ) and closing ( */) comment and it looks like -

/*:

The above forward slash (/) and an asterisk (*) then a colon (:) is opening comment - (/*:)

The below an asterisk (*) and forward slash is closing comment – (*))

*/



Discussion

No Comment Found