food for thought - swift 5 released - bottom types, string interpolation, and stuff.
Arun Chandrasekaran
aruncxy at gmail.com
Thu Apr 11 00:36:05 UTC 2019
On Tuesday, 9 April 2019 at 06:23:26 UTC, aliak wrote:
> I personally love swift as a language because it's just a
> pleasure to write _and_ read.
>
I understand this is subjective. Still this is _not_ pleasure to
read. Feels like C++ syntax reborn.
// Bool.swift in apple/swift
public static func random<T: RandomNumberGenerator>(using
generator: inout T) -> Bool {
return (generator.next() >> 17) & 1 == 0
}
More information about the Digitalmars-d
mailing list