Big Chungus
04/15/2024, 10:12 AMexpect val Platform
along with enum class Platform
for all the kotlin platforms along with their target name and other metadata like support tier for instance. I personally would love to have this in the stdlib, but I suspect more apropriate place for it would be s tiny kotlinx library that's released as part of each kotlin release. This would provide a standard way to do platform-branched logic in common sources for apps as well as a nice way for gradle plugins to hook into when integrating with KGP (assuming KGP integrates with this too instead of raw strings). Thoughts?Javier
04/15/2024, 10:48 AMJavier
04/15/2024, 10:49 AMBig Chungus
04/15/2024, 11:05 AMephemient
04/15/2024, 11:08 AMenum class
is a bad idea, as that can break existing users when new values are addedBig Chungus
04/15/2024, 11:09 AMephemient
04/15/2024, 11:10 AMwhen
forBig Chungus
04/15/2024, 11:10 AMBig Chungus
04/15/2024, 11:11 AMBig Chungus
04/15/2024, 11:12 AMephemient
04/15/2024, 11:13 AMJavier
04/15/2024, 11:15 AMas that can break existing users when new values are addedIsn't that expected? I would like a exhaustive
when
to fail after upgrading Kotlin if it has new targetsBig Chungus
04/15/2024, 11:16 AMBig Chungus
04/15/2024, 11:17 AMephemient
04/15/2024, 11:21 AMJavier
04/15/2024, 11:23 AMSince that would halt new version adoption by having to wait for the libraries to update. Similar situation with current compiler plugin compatibility issues.Libraries should add
else
for exampleOliver.O
04/15/2024, 3:53 PM