-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decide on File naming for RxCocoaExt(s) and RxSwiftExt(s) #131
Comments
IMHO, the Regarding tests, the Casing rules are 👍 |
Thanks for taking the time to comment @fpillet :)
In general I agree. The problem is we aren't naming the RxSwift counterparts as |
This is actually my idea. You can't have RxCocoa without RxSwift anyway, so it doesn't make real sense (other than purely aesthetic) to force naming Another idea I have, since RxCocoa is all about UI, would be to name |
Actually that's a fair point about RxSwift being the "base". I think since |
Sure, sounds good! |
@freak4pc Sorry for late reply, but I think it is possible to have same file names on RxSwiftExt/RxCocoaExt (which is optimal IMO) once they are separated into two projects (as per the existing plan). |
Thanks @mosamer ! Besides solving the "duplicate filenames" thing I'm worried this will just add more overhead to maintain several Xcodeprojs. What do you guys think? @fpillet Also not sure, we might actually be forced to do this to let Carthage users granularly install RxSwiftExt or RxCocoaExt separately (is this really a worth cause here? I think @bobgodwinx understands Carthage better than the rest of us so would love your opinion!) |
Happy holidays to you all. @freak4pc I think there is no need to have duplicate files or filename. For any operator that is used in both projects I would prefer going for a
This is just an example of how it could be structured. Although
|
@bobgodwinx We can't go with that approach since that would force you to install RxSwiftExt and RxCocoaExt together, without any granularity. We want separate file for the separate projects |
Also, it's better to keep file names distinct to shield against debugging issues with similar file names in the same framework. May confuse poor LLDB |
Sure, let me see what you're thinking of :) thanks @bobgodwinx |
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.
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
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?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:
Thanks for any assistance in naming :)
The text was updated successfully, but these errors were encountered: