BASIC and its variants Visual Basic and VB.NET are the only programming languages I know of that treat the end of line character as a statement terminator (I'm excluding batch files and command scripts from the domain of programming languages). I'm curious: is there any other language that uses this convention, or does BASIC stand alone?
1
votes
You mean EOL == EOS (end of statement)
- T.J. Crowder
I'd make this a community wiki if I were you; there's no "right" answer.
- T.J. Crowder
I assume you're treating VBScript as a variant of VB. :-)
- T.J. Crowder
@TJ - Seems to me there is a right answer. It's either yes or no.
- JohnFx
@JohnFix: Heh heh heh. Does SO allow answers that are just two letters long? ;-)
- T.J. Crowder
5 Answers
3
votes
Here's a good breakdown of languages and their statement terminators. According to that page, these languages are newline terminated:
- AutoHotkey
- GFA BASIC
- BASIC / Visual Basic / Visual Basic .NET
- Fortran
- Ruby
- Python
- AppleScript
- Windows PowerShell
- Boo
- MATLAB (result displayed)
3
votes
1
votes
1
votes