https://kotlinlang.org logo
Title
s

sdeleuze

07/01/2022, 1:08 PM
https://twitter.com/sdeleuze/status/1542857535740329984
🎉 5
:thank-you: 5
🙌🏼 1
🙌 6
:nice: 11
:kotlin-intensifies: 1
:kotlin-intensifies-purple: 4
k

Klitos Kyriacou

07/01/2022, 1:15 PM
This is progress, but it's still not quite fully there. The paragraph just above this snippet still says "The
MyApplication.java
file would declare the
main
method, along with the basic
@SpringBootApplication
, as follows:". This only makes sense when you're looking at the Java version of the code.
s

sdeleuze

07/01/2022, 1:16 PM
Yep further refinements are needed but we don't have yet a way to make that change between Java and Kotlin.
Maybe we need to use a language neutral phrasing, not sure.
1
Feel free to send a PR with "The
MyApplication
class" instead of "The
MyApplication.java
file" to https://github.com/spring-projects/spring-boot/pulls to see if the Spring Boot team is open to consider this.
k

Klitos Kyriacou

07/01/2022, 1:36 PM
But it would still be problematic. "The MyApplication class would declare the main method" is incorrect. The main method is a free-standing one, independent of the MyApplication class. I'm not sure how best to phrase it. Ideally, perhaps the whole language-switching mechanism ought to apply to the entire page or paragraphs within the page, instead of just code.
s

sdeleuze

07/04/2022, 5:56 AM
I don’t think that’s doable in a maintainable way.
f

Frank bos

07/04/2022, 9:40 AM
Maybe it is an option to put those “language” specific phrases inside the code-block (commented). So it is closer to code and also switches between the language?
s

sdeleuze

07/04/2022, 10:05 AM
I will discuss the various options with Spring Boot team and let you know.
❤️ 1