/.exactDigits(3) + "-").oneOrZero +
> /let routing: Int/.exactDigits(3) + "-" +
> /let local: Int/.exactDigits(4)
> ```
>
> In this model, the `//` syntax will only be used for initial binding and
> swifty transformations will build the final rege
Could it be possible to specify the regex type ahead avoiding having to specify
the type of each captured group?
let usPhoneNumber: Regex
= /
(\d{3}?) -
(\d{3}) -
(\d{4}) /
“Verbose” alternative:
let usPhoneNumber:
I am yet another one that tries to never use !
It feels like bad heritage from C, and it probably should be removed from Swift
in the same way for(;;) and ++/-- where removed.
! does not provide any unique functionality, as it is redundant to “== false”.
Other than syntax sugar, it does not
be initialized with the TableRow
(maybe via Decodable).
Given a proper name, this type could be really useful in many cases.
Thanks,
Eneko
> On Jan 9, 2018, at 9:28 AM, Eneko Alonso via swift-evolution
> <swift-evolution@swift.org> wrote:
>
> How about renaming Dictio
How about renaming DictionaryLiteral to Row, TabularRow or TableRow?
I think most developers are familiar with the idea that a table row contains
multiple columns (in specific order), and each column has a name and a value
(key/value).
Some other name suggestions:
- Record (kind of an old name
In regards of A, doesn’t this code cover al cases?
@incomplete enum {
case pancake
case waffle
case juice
}
When the @incomplete tag is present, the compiler enforces (with an error) that
all switches handle a default case:
switch breakfast {
case .pancake:
case .waffle:
case
Modules do more than that. For instance, if two imported modules provide a type
with the same name, you can distinguish (name-spacing) them by using
ModuleA.Thing vs ModuleB.Thing.
In regards of Modules being intended to be shipped separately, that is
incorrect. You might be thinking of
Hello everyone,
My name is Eneko Alonso, iOS developer, new here on the list.
Is there a good summary anywhere that condenses the pros and cons of this new
feature that have been discussed so far?
It is not clear to me why non-exhaustive would be the default, requiring adding
`@exhaustive`