言語の設計判断

11,873 views

Published on

0 Comments
10 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
11,873
On SlideShare
0
From Embeds
0
Number of Embeds
113
Actions
Shares
0
Downloads
85
Comments
0
Likes
10
Embeds 0
No embeds

No notes for slide

言語の設計判断

  1. 1. Marcus Tullius Cicero, Philippicoe (XII, 2)
  2. 2. ( )
  3. 3. Otto Eduard Leopold von Bismarck-Schönhausen
  4. 4. ⊔ ⊔ ⊔ ⊔ ⊔
  5. 5. #include <iostream> int main(){ { using namespace std; cout << (2 << 2); } { int cout = 1; cout << (2 << 2); } }
  6. 6. ƛ ✎✎ ✎ ✎ ƛ
  7. 7. >>> def foo(): ... x = "static" ... def bar(): ... print(x) ... ... bar() ... >>> foo() static
  8. 8. sub foo{ my $x = "staticn"; my $bar = sub{ print $x; } &bar(); } &foo(); #-> static
  9. 9. sub foo{ my $bar = sub{ print $x; }; $bar->(); } $x = "globaln"; &foo(); #-> global { local $x = "dynamicn"; &foo(); #-> dynamic } &foo(); #-> global

×