GarouDan
03/16/2019, 4:26 PMbackticks?
Until now we have the following:
val ` -!"#$%^&()*+,-=?@^_{|}~😡` = ""
Characters known to be not allowed:
.:/\[]<>
Is there a place that we can find this?
Related topics:
https://gist.github.com/Danilo-Araujo-Silva/36814f87cdf71177571e817aee040096
https://kotlinlang.org/docs/reference/java-interop.html#escaping-for-java-identifiers-that-are-keywords-in-kotlin
https://kotlinlang.org/docs/reference/coding-conventions.html#naming-rules
https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.2.2
https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-4.html#jvms-4.2Marc Knaup
03/16/2019, 4:42 PMGarouDan
03/16/2019, 4:46 PMMarc Knaup
03/16/2019, 4:46 PMUbi
03/16/2019, 4:53 PM@Test
fun `angry path test 😡`() {
TODO("not implemented")
}
wow we can even put some emojis.. not sure how useful that will be 😄GarouDan
03/16/2019, 4:53 PMGarouDan
03/16/2019, 4:54 PMUbi
03/16/2019, 4:55 PM\ & / is not allowed either.Marc Knaup
03/16/2019, 4:56 PM. I guessGarouDan
03/16/2019, 4:58 PM. and >. I was trying some against the ascii table and some of them are not allowed. It looks like if java uses it somehow the aren’t allowed, but I don’t know.Marc Knaup
03/16/2019, 4:59 PMMarc Knaup
03/16/2019, 4:59 PM:;/.Marc Knaup
03/16/2019, 4:59 PM\ is used forGarouDan
03/16/2019, 5:03 PM\ in jvm? It’s kind of strangeMarc Knaup
03/16/2019, 5:08 PM[ may also be forbiddenMarc Knaup
03/16/2019, 5:09 PM< >Marc Knaup
03/16/2019, 5:09 PMGarouDan
03/16/2019, 5:12 PMMarc Knaup
03/16/2019, 5:13 PM\ and >Marc Knaup
03/16/2019, 5:14 PM<init> and <clinit>Marc Knaup
03/16/2019, 5:14 PM<Czar
03/16/2019, 5:23 PM\ is the escape character, > is math op and right part of arrow.Marc Knaup
03/16/2019, 5:24 PMCzar
03/16/2019, 5:28 PMMarc Knaup
03/16/2019, 5:30 PM> being disallowed.
It doesn't explain \ though, which is only disallowed in module & package names.Czar
03/16/2019, 5:31 PMCzar
03/16/2019, 5:32 PMMarc Knaup
03/16/2019, 5:32 PMGarouDan
03/16/2019, 5:33 PMCzar
03/16/2019, 5:33 PMMarc Knaup
03/16/2019, 5:36 PMMarc Knaup
03/16/2019, 5:36 PMGarouDan
03/16/2019, 5:37 PMMarc Knaup
03/16/2019, 5:38 PMGarouDan
03/16/2019, 5:40 PMval `¯_(ツ)_¯` = ""Czar
03/16/2019, 8:07 PMGarouDan
03/17/2019, 11:40 AM