Skip to content

Comment on Swift Blogparent

Comments

In general, there are good reasons to not do implicit casts, especially between ints and floats. For one, it's actually a fairly expensive operation.

Eh, not really. Certainly conversions from int->long should be implicit (I don't know if they are in Swift, though).

Presumably you mean there are good reasons not to do implicit casts.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.