Open
Description
Proposal: the syntax print("Hello World!")
would be equivalent to print *, "Hello World!"
.
Advantages:
- Easier to type and remember, as well as to explain to newcomers
- Equivalent to Python's syntax
- Possibly with Implement f-strings #336 one could use f-strings for formatting, thus rarely need the more general Fortran formatting capability
Disadvantages:
- Main problem: ambiguous with current syntax (Implement simpler print syntax:
print("Hello World!")
#335 (comment)) - It's just syntactic sugar (this is an advantage to some)
- Must be weighed against the implicit costs of adding any new feature: https://fortran-lang.discourse.group/t/cost-of-adding-any-new-feature-to-the-fortran-language/1479
Discussed at:
Metadata
Metadata
Assignees
Labels
No labels