diffplug / diffplug/selfie

Emoji snapshot methods

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
101
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.