Flutter(Dart) vs Kotlin. Is a semicolon bad?

Опубликовано: 23 Март 2026
на канале: java4you
139
3

From the very beginning when #Flutter was released in December 2018 and every time after that, when I'd talk to Android developers (and by then they were all switching to Kotlin), there were a lot of mentions of things that weren't in Dart and Flutter, and in particular, it was almost always about putting a semicolon where you need it. Since then, a lot has changed in Dart (Flutter) - null safety, records, pattern matching, and sealed classes. But the semicolon is still there. So, is it really that bad to keep using the semicolon? Well, it depends.
Calculate the amount and output it to the console. First, an example in #Java.
Now we turn to #Kotlin.
I went to Kotlin's official website to see if I have the old version and everything has already been fixed in the new one. And here is the same mistake
Now let's look at Dart. Also because of the semicolon, there are always 4
Well, okay, these java and dart use semicolons, maybe everyone who refused has such problems.
And here I started writing on Swift, I decided to check on it. And look, Swift is doing a great job!
Well, to the Kotlinists – maybe I'm doing something wrong, write it, it's very interesting?


@Flutter

Official Flutter channel on Youtube -    / @flutterdev  

Flutter official site - https://flutter.dev/