r/ProgrammingLanguages • u/ThomasMertes • 29d ago
How programming languages approach graphics
Many general-purpose languages delegate graphics to third-party libraries (like SDL, Raylib, or OpenGL). Seed7 integrates portable 2-D graphics right into its standard library. This IMHO improves portability. I also thought about introducing operators / statements to do graphics, but until now I don't use operators or statements to do graphics.
29
Upvotes
View all comments
Show parent comment
3
u/ThomasMertes 29d ago edited 29d ago
If a Seed7 function returns a value the value must be used. For example:
Writing just
leads to an error. C and other languages have the concept of voidening (the value is silently thrown away). I don't think that this is a good idea. If you want to ignore the result of a function you must do it explicitly:
Procedures on the other hand return no value. They are called with: