cielavenir

Reading https://github.com/tric/trick2013/blob/master/shinh/

Jul 13th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.79 KB | None | 0 0
  1. begin
  2.   #with(an(easy(program.)))
  3.   #you(should(be(able(to(write))))
  4.   a(program) unless
  5.     for you, program in ruby(language(is)) ### ここでyouとprogramが「定義」される
  6.     #too(difficult.(At(the)))
  7.     end
  8.   #of(your(journey(towards(the))))
  9.   #ultimate(program); you(must)
  10.   #be(a(part(of(a(programming))))
  11.   #language.(You(will))
  12. end if you != program ### youとprogramは定義されているのでエラーにはならない
  13.  
  14. #これと同じことである:
  15. begin
  16.   terminate(process) if for hello in ruby(world) do undefined end ### 世界をRubyすることに対し挨拶が未定義動作をする時、プロセスを終了せよ(苦笑)
  17. end if hello
  18. #もしくは
  19. hello=world if hello
  20.  
  21. for hello in world
  22. Rubyの変数定義はよくわかりません。
  23. end if hello
Add Comment
Please, Sign In to add comment