Description
Description
This ticket continues discussion on one of the point form #127.
Would appreciate some opinions on what you guys would consider proper naming for files.
In an optimal world we could keep the same naming across RxSwift and RxCocoa components.
e.g.
- RxSwift
- distinct.swift
- RxCocoa
- distinct.swift
But swiftc
won't compile two filenames of the same name, even if they don't contain any definition conflicts.
Right now the naming seems to follow
- RxSwift
- distinct.swift
- RxCocoa
- distinct+RxCocoa.swift
Does anyone have any nicer ideas of how to name these files ?
Thoughts I sort of have ATM:
distinctSwift.swift
,distinctCocoa.swift
might be a bit meh?- having a single
distinct.swift
file in a Common folder (same level as RxSwift and RxCocoa) for every filename that has extensions that are relevant for both. But actually this won't work since there won't be a good way to subspecies these... (maybe build flags)
This is a bit of a tricky subject so would appreciate any help.
Anyways, For tests It would just be the same with Tests.swift
appended to the end of whatever filename, to keep things consistent.
Also for naming in general, seems there was an agreement for:
- Class Case for classes (including XCTestCase subclasses)
- camelCase for operators
Thanks for any assistance in naming :)