Historical NewsExamples, Revision 3
Here are short eucode examples that will appear on the home page (News). Examples should be short and separated by an HR ----. Examples should include a 1 or 2 line beginning comment explaining what the demo is attempting to show. Don't include examples > 8 lines long and figure you have about 45 characters wide. Make the examples show something nice, important, elegant and attractive to people who may be considering Euphoria. The more we have the better.
To test your new addition, access the main news page with ?example=XYZ, 1 being the first example.
This introductory text will be skipped.
-- Euphoria is simple puts(1, "Hello, World!")
-- Euphoria has powerful sequences sequence nums = { 5, 6, 7 } ? nums * 2 -- Output: { 10, 12, 14 }
-- Euphoria is testable include std/unittest.e test_equal("1 plus 1 should be 2", 2, 1 + 1) test_report()
Can be interpreted or compiled: $ eui hello.ex Hello, World! $ euc hello.ex Building... gcc -o hello hello.c $ ./hello Hello, World!
Euphoria is cross platform: C:\Euphoria> eui hello.ex Hello, World! [linux@~] $ eui hello.ex Hello, World! [osx@~] eui hello.ex Hello, World!
- diff to current revision, view current revision history, backlinks
- Last modified Nov 08, 2010 by jeremy