-
Notifications
You must be signed in to change notification settings - Fork 52
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
Proposal: Rename GattConnection interface to something else #29
Comments
Seems odd to put
Or maybe just some sort of pun involving Cats? Or just a non-descriptive name? |
Hi, I'm passing through :) Given these options I agree with @bj0's favor/caution with regard to How does
|
Short-link was in regards to Bluetooth classic though not Bluetooth Low Energy
…Sent from my iPhone
On Dec 17, 2018, at 8:50 PM, Eric ***@***.***> wrote:
Hi, I'm passing through :) Given these options I agree with @bj0's favor/caution with regard to BleGatt. I also see on Wikipedia that Bluetooth was first called "short-link" radio technology.
How does interface ShortLink sound to you?
internal class ShortLinkImpl(
private val bluetoothDevice: BluetoothDevice,
private val connectionSettings: ShortLink.ConnectionSettings
) : ShortLink, CoroutineScope
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
You could create a |
GattConnection
is not the ideal name for 3 reasons:Bluetooth
orBle
is missing from its name, while it's exclusively for Bluetooth General ATTribute.established yet.
disconnect()
function… shouldConnection
be magically dropped from the name of the class when this function is called? Of course, this is impossible, but shows how the name is not an ideal fit.Consequently, I want this class to be renamed when the first Kotlin 1.3 compatible version is released, with a deprecated typealias on initial pre-release (alpha, beta or rc) for source compatibility.
Here are a few name ideas:
BleGatt
SuspendBluetoothGatt
SuspendBleGatt
BluetoothGatt
(with named import to reference Android's asAndroidBluetoothGatt
or alike)BluetoothGattIsFun
(wait… maybe notactual
fun
yet 🤔)FunBluetoothGatt
(this could open the discussion of a library renaming)Please, add a comment to say what you think about each proposition (I may append more name ideas, but I will keep the numbers stable), and if you have other name ideas, please write them there too.
The text was updated successfully, but these errors were encountered: