5

From this answer:

The 2nd # marks the label as required and should not be treated as a comment.

Code:

func addLocation(#latitude : Double, #longitude : Double) { /*...*/ }
addLocation(latitude: 125.0, longitude: -34.1) // Better

Image of rendering on Stack Overflow:

enter image description here

The response to a Prettify support request claims that this is on Stack Overflow's end, not theirs.

2
  • 3
    This appears to be an issue with the default highlighting scheme, as there is no dedicated language hint for Swift. Someone should get around to implementing one.
    – BoltClock
    Jan 18, 2015 at 16:34
  • 3
    possible duplicate of What is syntax highlighting and how does it work?
    – Ben
    Jan 18, 2015 at 18:25

0

You must log in to answer this question.

Browse other questions tagged .