|  | 
| Falcon | |
| ldci | 8-Jul-2009/22:37:13+2:00 | 
| Qui connaît Falcon ? http://www.falconpl.org/ Falcon is ... ...an Open Source, simple, fast and powerful programming language, easy to learn and to feel comfortable with, and a scripting engine ready to empower mission-critical multithreaded applications. Falcon provides six integrated programming paradigms: procedural, object oriented, prototype oriented, functional, tabular and message oriented. And you don't have to master all of them; you just need to pick the ingredients you prefer, and let the code to follow your inspiration. | |
| shadwolf | 1-Aug-2009/8:19:30+2:00 | 
| ca a l'air embitieux comme langage de programmation. Comme tout les autres non ? Je suis en général plus interresser par ce que je peux faire avec un langage de programmation que par comment le faire. J'aurai donc une approche plus empirique que scientifique. | |
| shadwolf | 1-Aug-2009/8:23:57+2:00 | 
| le falcon ca ressemble ca : 
// Create a lucky attribute
attributes: lucky
// Some person that may be lucky...
class Person( number )
   id = number
   init
      //... depending how they are born.
      if random(0,1): give lucky to self
   end
end
// create all the people
for i in [1:11]: Person(i)
// who's lucky?
for man in lucky
   > "Person ", man.id, " is lucky!"
end
... du C++ a la syntaxe plus légère et sans le ";" Ouai je suis je suis raba joie tout ca tou ca. Mais heu en ce momment les script language a la mode c'est Lua et Python. Moi je prefere quand meme rebol j'ai le droit ? | |
| shadwolf | 1-Aug-2009/8:33:34+2:00 | 
| le give lucky to self  c'est spécial quand meme j'avoue ... le for man in lucky c'est spécial aussi .. Person c'est fait transformer en man in lucky c'est marrant... | |
| shadwolf | 1-Aug-2009/8:41:05+2:00 | 
| bon ceci dit j'aime pas les end j'aime pas class (c'est un objet une confonction les 2 en meme temps ?) en rebol ca donnerai ca lucky: [] person: func [id integer! ][ if random/seed/only [0 1] = 1 [ append lucky id ] ] for i 1 11 1 [ person i ] foreach man lucky [ print rejoin ["Person " man " is lucky"] c'est trop mignon rebol quand meme :P | |
| shadwolf | 1-Aug-2009/8:46:58+2:00 | 
| lucky: [] person: func [id ][if 1 = (random/seed/only [0 1] ) [ append lucky id ]] for i 1 11 1 [ person i ] foreach man lucky [ print rejoin ["Person " man " is lucky"]] Sur une ligne !! | |
| Login required to Post. | |