News for hackers. Stuff that matters.
Re:Felix - a fast scripting language by michaelfeathers on Friday January 04, 2013 @03:50PM (#5009808)
While I enjoy reading about new and interesting languages (note: Felix has been around for over ten years), I really wish that language designers would put example code for something like FizzBuzz right on the front page to give people a flavor of the syntax.

I can't remember how many times in my life I've done a link expedition through a website or docs just to see a simple programming example.

Re:Felix - a fast scripting language by Yttrill on Friday January 04, 2013 @09:33PM (#5011199)

  for var i in 1 upto 15 do 
    println$ 
      match i % 3, i % 5 with
      | 0,0 => "Fizz-Buzz"
      | 0,_ => "Fizz"
      | _,0 => "Buzz"
      | _ => str i
      endmatch
    ;  
  done
Did I get the job?