This is a major Golf release. The most notable features added are a new safety layer aimed at preventing logical errors in code, as well as directory support. The full list is here:
- Added a number of statements for directory support (change-dir, delete-dir, new-dir)
- Added change-mode, a statement that changes permissions mode for files and directories
- Added back support for Arch/Manjaro builds (after building overhaul)
- Added advanced application safety checks: it enforces status checking for statements that may cause serious application logic errors. This is done by checking for negative status outcome at run-time, but only if your code does not check for status, and by stopping the application if it happens. This provides for much safer application run-time because it prevents further execution of the program if such outcome happens, and it also forces the developer to add necessary status checks when needed. This feature is automatic and has an extremely low impact on performance.
- Added octal and hexadecimal number support
- delete-cookie now returns GG_OKAY or GG_ERR_EXISTS for more streamlined error checking
- Files are now created with default mask of 600 and directories with 700 for added security
- You can now use standard Linux constants, as defined in C "errno.h" include file to compare the error code obtained with get-req. For instance, you can use constants like EACCES or EEXIST. To see what's the meaning of errno number or name, use standard Linux utility "errno".
- Added ability to get current working directory, by using "directory" clause in get-req
- Added "end-of-file" clause in read-file statement, which makes it easier to see if a short read is due to end of file.
- Fixed error in documentation: "count" clause was missing in split-string. Various documentation improvements.
- Added ability to get permission mode for a file or directory (such as 0750) in stat-file statement via "mode" clause, which is reworked to be able to produce multiple queries about a file at once