"Sputnik" help  
Sputnik Help
Language Reference - Preprocessor - Case-Insensitive Macros

Case-Insensitive Macros

The introduction of case-insensitive macros in Sputnik through #definei, #definemi, and #macroi is a valuable addition that enhances the flexibility and ease of use in the language. This feature allows developers to create macros and definitions without being concerned about case sensitivity, providing a more intuitive and user-friendly experience. With these case-insensitive variations, Sputnik caters to diverse coding styles and preferences, making it a versatile language for developers who value both readability and convenience.

Examples:

#definei CAT "meow"
say cat;
// PRINTS
// meow

#definemi DOG^
    "woof"
^
say DOG;
// PRINTS
// woof

#macroi KITTEN
    "purr"
#endm
say KITTEN;
// PRINTS
// purr

Summary:

In summary, the introduction of case-insensitive macros in Sputnik, marked by #definei, #definemi, and #macroi, represents a game-changing departure from C's traditional case sensitivity. This powerful feature enhances flexibility and user-friendliness, catering to diverse coding styles and preferences. It stands as a unique and cool addition to Sputnik, offering developers a more intuitive and versatile experience.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org