Replies: 4 comments 3 replies
It's possible . . . But let's go to practice: Do you have a Modula-2 to Modula-3 converter, m2tom3? ( https://github.com/VictorMiasnikov/cm3/releases/tag/d5.11.9-ZZYYXX-20251001_00-00 ) P.S.
Benjamin Kowarsch . . . Future Modula-2 R10 . . . |
|
Are You seeing Issue #1198 about the Modula-3 IDEA IntelliJ plugin? P.S. I have seen (and read) h-t--t-ps://gi-t-hub.com/SpartanJ/ecode/issues/693 ( ( . . .) ) |
https://freepages.modula2.org/forml.html Benjamin Kowarsch say: |
m2tom3 use WHILE instead of FOR by default ( TODO: add details)
There is translated to English Advantages of implementing the FOR loop in Modula-3 The FOR loop in Modula-3 has been significantly improved compared to its counterparts in Pascal and Modula-2. These changes made it safer, more flexible, and easier to develop with. Here are the key advantages:
This simplifies iterations with non-standard steps, which is especially useful in scientific computing or data processing.
This makes code clearer than using WHILE loops. Comparison with other languages
Feature | Pascal/Modula-2 | Ada | Modula-3
-- | -- | -- | --
Step size | Restricted to ±1 | Flexible | Flexible
Loop variable modifiability | Can be modified inside loop body | Read-only | Read-only
Behavior after loop | Undefined | Well-defined | Well-defined
Safety features | Limited | Strong | Strong, inspired by Ada
Syntax complexity | Simple but less safe | Complex | Simple yet safe
Summary P.S, Known issue: table is broken |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
https://lists.gnu.org/archive/html/gm2/2025-10/msg00005.html
I heard about M2 before M3. I watch the gm2 mailing list but have never tried M2. This thread is what making me want to try M3, as M3 seems to be more interesting than M2.
All reactions