diffplug / diffplug/selfie

Emoji snapshot methods

Offen
#53 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Kotlin
Sterne
101
Forks
18
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

We will never ship this by default, but it might make sense to do something like what [blowdryer did for 干](https://github.com/diffplug/blowdryer?tab=readme-ov-file#chinese-for-dry-%E5%B9%B2)

- `com.diffplug.selfie:selfie-kotlin-emoji`
- `expectSelfie` -> :mag_right:
- this would only work in kotlin, and it would have to be bracketed with double-backticks, but it stands out visually
- Unicode has both :mag_right: and 🔍, doesn't really matter which, but we should not do both and `:mag_right:` works in GitHub but `:mag_left:` doesn't so that's the tiebreaker
- another option is `expectSelfie` -> 📷
- `com.diffplug.selfie:selfie-ku`
- `expectSelfie` -> 𐌒
- this is using the old italic letter ku, which would work in java and kotlin

The code would look something like this

```kotlin
object 𐌒 {
@JvmStatic fun 𐌒(actual: String) = Selfie.expectSelfie(actual)
@JvmStatic fun 𐌒(actual: Int) = Selfie.expectSelfie(actual)
@JvmStatic fun 𐌒(actual: Boolean) = Selfie.expectSelfie(actual)
}
```

It's cute, but it's very easy for people to do themselves in their own projects, and it's probably a bad idea so we shouldn't encourage it by publishing artifacts for it.

The :mag_right: has a tiny sliver of functionality, the color does standout just a bit, seems appropriate.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.