Yes it was.
Yes it was.
http://www.vintage-basic.net/bcg/superstartrek.bas
https://www.atariarchives.org/basicgames/showpage.php?page=1...
1964 BASIC did support single-line function definitions (see page 13.)
Dartmouth BASIC kept evolving into the 1980s and seems to have turned into a pretty capable language that retained much of the accessibility of the original. I wonder what would have happened if True BASIC had been a free/open source project instead of proprietary software.
Simple numerical/mathematical programs are certainly useful today, especially for students and researchers - BASIC emerged from Dartmouth's math department after all. Of course now we can run them on pocket calculators - some of which still run BASIC!
As I understand it, subsequent editions of BASIC running on Dartmouth's time-sharing system were used for a wide variety of applications, including:
- numerical programs (including scientific and engineering computation)
- simulations
- text formatting and document preparation
- statistics and data analysis
- communication programs such as online chat
- data storage and retrieval
- course management and grading
- games
- printing things from form letters to large signs
etc.
Regarding the limits of 1960s computing, it's worth noting that primitive computing systems, along with numerical and control software, were useful in helping to send humans to the moon and back (among other impressive accomplishments.)
Those are extremely basic functions that can only do a simple math operation on a single number. This is a function in the math sense, but not useful for programming.
Personally I'm kind of impressed that it existed back then at all, as well as the simplicity of original BASIC that enabled regular people to write useful programs, nearly 60 years ago.
Lucky gosub came soon after which left a return pointer on the stack, making things a lot better and basically being like an early function call.
Only problem was you could still goto around making life really confusing for yourself :) A lot of bad habits were learned this way :P