Swift - Bool vs Boolean

I am teaching myself to program using Swift 3, and I'm currently learning booleans. I noticed that if I want to explicitly declare my variable of type bool, I have two options

Bool

or

Logical

I was wondering why we have these two options if they are the same? Well, are they the same? This is what I'm confused about.

Thanks in advance.

+6
source share
1 answer

Bool is a data type of the Boolean type Swift. Boolean did not exist from the first days of Swift.

+2
source

Source: https://habr.com/ru/post/1012607/


All Articles