| |||||
| Auteur | Sujet : blabla@web |
|---|---|
theredled ● REC | Reprise du message précédent :
Message cité 2 fois Message édité par theredled le 25-09-2007 à 10:32:56 --------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
Publicité | Posté le 25-09-2007 à 10:31:16 ![]() ![]() |
omega2 |
Heu ... le principe d'un langage traditionnel (donc pas ceux conçu pour planter aléatoirement) c'est d'être prévisible à partir du moment où on en respecte ses règles. C'est sur que si tu programmes dans un langage en te disant que tout sera exactement pareil que dans tel autre, tu finiras par avoir des bugs. Moi ça me viendrait pas à l'idée de me lancer dans du python en me disant que rien ne change par rapport au PERL. Je prendrais au moins le temps de vérifier les bases et de me renseigner sur les différences.
Si ta règle d'or, c'est l'indentation, alors il me semble qu'il y a un langage fait exprès pour toi. |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 25-09-2007 à 10:37:02 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Dj YeLL $question = $to_be || !$to_be; |
--------------- Gamertag: CoteBlack YeLL |
omega2 |
Le problème n'est pas le foreach mais le elseif. Vu que tu ne dis pas à quel if le elseif correspond alors le elseif prend le if le plus proche : dans le cas présent celui contenu par le foreach. Je ne vois vraiment pas pourquoi la règle devrait être différente par ce qu'un foreach se trouve entre les deux if. Si la règle changeait pour des raisons aussi obscure alors là oui le langage serait imprévisible. |
Shinuza This is unexecpected |
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
theredled ● REC |
Une structure if sans accolades, comme un foreach, ne s'applique qu'à l'instruction qui suit. Message cité 2 fois Message édité par theredled le 25-09-2007 à 10:46:45 --------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
masklinn í dag viðrar vel til loftárása |
Accessoirement, omega2 a parfaitement raison, et il n'est pas anormal que
Message édité par masklinn le 25-09-2007 à 10:50:35 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
theredled ● REC | ATTENTION CHANGEMENT D'AVIS
En fait un "; else" n'est pas considéré comme une nouvelle instruction, ce que je pensais à tort à cause du point-virgule.
Message cité 2 fois Message édité par theredled le 25-09-2007 à 10:54:20 --------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
Dj YeLL $question = $to_be || !$to_be; |
Nan mais lol Donc d'après toi :
devrait sortir "pouet" ?
Message cité 2 fois Message édité par Dj YeLL le 25-09-2007 à 10:55:43 --------------- Gamertag: CoteBlack YeLL |
Publicité | Posté le 25-09-2007 à 10:54:43 ![]() ![]() |
theredled ● REC |
--------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
theredled ● REC |
Et c'est la doc PHP elle-même qui dit que php se comporte comme C pour les if Message cité 1 fois Message édité par theredled le 25-09-2007 à 11:00:41 --------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
masklinn í dag viðrar vel til loftárása |
C'est même complètement débile Message cité 1 fois Message édité par masklinn le 25-09-2007 à 11:01:32 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
theredled ● REC |
Message cité 1 fois Message édité par theredled le 25-09-2007 à 11:02:16 --------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
ratibus |
|
masklinn í dag viðrar vel til loftárása |
D'autant plus quand t'es un dev de la team PHP, pour qui "spécification" est un mot de 13 lettres commençant par "orignal" Message cité 1 fois Message édité par masklinn le 25-09-2007 à 11:04:39 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
theredled ● REC |
--------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
theredled ● REC |
--------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
gizmo |
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
omega2 |
Heu, pour lever toute ambigüité, dans ton exemple, il est où le ";" situé en dehors du bloc du "if"?
Affichera une erreur de syntaxe tout simplement par ce que le ; finis bien l'instruction du "if".
Message cité 1 fois Message édité par omega2 le 25-09-2007 à 11:31:30 |
theredled ● REC |
D'ailleurs de mes exemples précédents, avec un point-virgule dans le if (après une seul instruction), ça marche, donc bien pas le même comportement qu'en C Message cité 1 fois Message édité par theredled le 25-09-2007 à 11:28:25 --------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
omega2 |
Même comportement, pas même syntaxe. |
Shinuza This is unexecpected | En conclusion : Coder comme une merde c'est le mal.
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
theredled ● REC |
--------------- Contes de fées en yaourt --- █ --- zed, souviens-toi de ma dernière lettre. --- Rate ta musique |
omega2 |
|
Jubijub Parce que je le VD bien |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Shinuza This is unexecpected |
Il est arrivé la même chose à ton anglais --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
Dj YeLL $question = $to_be || !$to_be; |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
omega2 |
|
TheRom_S | Donc si ton programme doit utiliser 200 fois la même routine, tu te retrouve avec 200 COMEFROM à la suite, ce qui t'empêche de savoir d'où tu viens ...
--------------- The Rom's, à votre service |
masklinn í dag viðrar vel til loftárása |
Sauf qu'en INTERCAL un programme complet avec COME FROM (99 bottles of beer ici) ça donne:
Message cité 2 fois Message édité par masklinn le 25-09-2007 à 18:31:18 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Jubijub Parce que je le VD bien |
--------------- Jubi Photos : Flickr - 500px |
masklinn í dag viðrar vel til loftárása |
Pas de REPL, obligé de se taper des compilations en permanence, obligé de se manger ces conneries de classpath, 1 class/fichier, obligé de créer une classe complète pour un hello world... Ca n'a pas grand intérêt (sauf si on voit ça d'un point de vue économique et qu'on veut rentrer dans une boite à viandards naturellement), c'est franchement pas terrible pour débuter, lol quoi
Message cité 1 fois Message édité par masklinn le 25-09-2007 à 18:57:37 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Publicité | Posté le ![]() ![]() |

| Sujets relatifs | |
|---|---|
| blabla 3 | blabla 2 |
| PUTAIN HARKO TU AS FERM2 BLABLA ! | [Beaucoup de blabla pour rien : post à effacer] Compiler .bat |
| variable1="blabla + variable2 +blala : c'est possible ?? | [PHP & regex] "blabla blabla file.ext?point=444 blabla" Recupérer 444 |
| mail("celine@hotmail.com"," sujet","blabla"); pose une err ! Help | [MySQL] WHERE 'blabla' compris dans le champ truc |
| [blabla@olympe] Le topic du modo, dieu de la fibre et du monde | [PHP / BlaBla - limite] |
| Plus de sujets relatifs à : blabla@web | |





