question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Swift) Letter c is a built-in?

See original GitHub issue

In the following snippet:

func max(_ a: Double, _ b: Double, _ c: Double) -> Double {
  if a > b {
    return a > c ? a : c
  } else {
    return b > c ? b : c
  }
}

The parameter c is incorrectly highlighted as a built-in.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
svanimpecommented, Nov 15, 2020

@joshgoebel When I finish the project I’m working on, I’ll see if I can fix some of the Swift issues I’ve reported myself.

0reactions
svanimpecommented, Dec 15, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a Swift built-in for a default dict, similar to Array ...
Based on the answers, there is some confusion about what you results you want. What results do you want if letters is let...
Read more >
Pointer arithmetic with Builtin.RawPointer? - Using Swift
Basically, by bringing a Builtin type into your code, you've caught a glimpse of the world as the standard library sees it. Types...
Read more >
Swift Data Types (With Examples) - Programiz
Data types specify the type of data that can be stored inside a variable. In this tutorial, we will learn about swift data...
Read more >
swift/CToSwiftNameTranslation.md at main · apple/swift - GitHub
This document gives a high-level description of how C and Objective-C declarations are translated to Swift, with particular focus on how names are...
Read more >
The Swift Handbook – Learn Swift for Beginners
Before Apple introduced Swift, Objective-C was heavily developed to ... String are just two of the built-in data types provided by Swift.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found