Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I think it would make a lot more sense to make a language with similar semantics to COBOL, but modernized syntax. Instead of Typescript, a better model might be Coffeescript or Moonscript, which have a nearly 1:1 semantic mapping with their target language, but offer a more ergonomic and less verbose syntax. I haven't worked with COBOL at all, but I think the verbose syntax is probably one of the most offputting parts of the language. Stuff like move 1 to fact or multiply num by fact is tedious to type and read compared to fact = 1 or num *= fact. It's similar to how a mathematician would write equations like "z = x1.5 + y" instead of "z is equal to the sum of x raised to the power of 1.5 and y". The shorter form is not only quicker to write, but also easier to understand once you're familiar with the notational conventions.
I think it would make a lot more sense to make a language with similar semantics to COBOL, but modernized syntax. Instead of Typescript, a better model might be Coffeescript or Moonscript, which have a nearly 1:1 semantic mapping with their target language, but offer a more ergonomic and less verbose syntax. I haven't worked with COBOL at all, but I think the verbose syntax is probably one of the most offputting parts of the language. Stuff like move 1 to fact or multiply num by fact is tedious to type and read compared to fact = 1 or num *= fact. It's similar to how a mathematician would write equations like "z = x1.5 + y" instead of "z is equal to the sum of x raised to the power of 1.5 and y". The shorter form is not only quicker to write, but also easier to understand once you're familiar with the notational conventions.
Related posts
- Trying to make a website with Lapis
- "TypeScript compiles into JavaScript" vs "TypeScript compiles to JavaScript"
- I left Ubisoft to go solo, here's my first game. Made on Linux, and for Linux.
- MoonScript, a programmer friendly language that compiles to Lua (2017)
- 100 Languages Speedrun: Episode 89: MoonScript