Dorian on Nostr: The #Kotlin import model is really nuts 🥴 As far as I can see you need (in parts?) ...
The #Kotlin import model is really nuts 🥴
As far as I can see you need (in parts?) to import modules, classes, functions and even variables separately. Wildcard imports do not work recursively.
So, if you copy paste some source from a sample, a wild hunt starts. You'll spent minutes finding out where to import a shady functions and symbols from.
And also many online samples don't show the imports, because common knowledge I guess 🙄
Published at
2024-09-01 09:22:41Event JSON
{
"id": "5594c056bea8f99f92b64d6141cfc9af376ccfa3e2e2282a8c94797b9b14ace3",
"pubkey": "1b4b451ff80ad4781eff9f02725dd64068fb63b18f456552eeaebaf033aa15d9",
"created_at": 1725182561,
"kind": 1,
"tags": [
[
"t",
"kotlin"
],
[
"proxy",
"https://mas.to/users/dalcacer/statuses/113061564344042710",
"activitypub"
]
],
"content": "The #Kotlin import model is really nuts 🥴\n\nAs far as I can see you need (in parts?) to import modules, classes, functions and even variables separately. Wildcard imports do not work recursively. \n\nSo, if you copy paste some source from a sample, a wild hunt starts. You'll spent minutes finding out where to import a shady functions and symbols from.\n\nAnd also many online samples don't show the imports, because common knowledge I guess 🙄",
"sig": "2a8c592ca67a9f47a442bc84071a206faeacf43c333c191b8f0210d219d651136efbc756ca85b3f3397be4be43bdfe6d7fde8b60f5467b9d79cfd6d720a444b1"
}