KDawg
2018-02-26 00:56:42 UTC
Lack of an end-of-statement terminator is a horrible idea. Case in point,
consider Kotlin:
var x = 1 + 1 + 1
println(x)
results in 3, whereas
var x = 1 + 1
+ 1
println(x)
results in 2.
the lack of an end-of-statement terminator creates ambiguous code. Making
them optional only makes the situation worse.
consider Kotlin:
var x = 1 + 1 + 1
println(x)
results in 3, whereas
var x = 1 + 1
+ 1
println(x)
results in 2.
the lack of an end-of-statement terminator creates ambiguous code. Making
them optional only makes the situation worse.
This has been brought up a few times so I thought it would be a good idea
to have this written down somewhere so we can measure demand for it.
http://code.google.com/p/dart/issues/detail?id=4461
Mandatory semi colons just adds un-necessary line-noise making the code
uglier and less fun.
It would be nice if Dart followed all the modern C-like languages i.e.
Scala, Go, Kotlin and not require end-of-line semi colons.
It's actually rare to require them considering most functional,
scheme-like, scripting & dynamic langs avoid them as well. I understand
Dart is meant to appeal to C# / Java devs, but they would still be able to
optionally add end of lines semi-colon if it makes them more comfortable -
whilst the rest of us can write prettier code :)
Normally I wouldn't suggest this, but since even modern C-like languages
are able to get by without them, I don't expect them to be too disruptive
to implement.
to have this written down somewhere so we can measure demand for it.
http://code.google.com/p/dart/issues/detail?id=4461
Mandatory semi colons just adds un-necessary line-noise making the code
uglier and less fun.
It would be nice if Dart followed all the modern C-like languages i.e.
Scala, Go, Kotlin and not require end-of-line semi colons.
It's actually rare to require them considering most functional,
scheme-like, scripting & dynamic langs avoid them as well. I understand
Dart is meant to appeal to C# / Java devs, but they would still be able to
optionally add end of lines semi-colon if it makes them more comfortable -
whilst the rest of us can write prettier code :)
Normally I wouldn't suggest this, but since even modern C-like languages
are able to get by without them, I don't expect them to be too disruptive
to implement.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.