1
timonwong 2013 年 8 月 29 日 D mixins
|
2
aisk 2013 年 8 月 29 日 |
3
saharabear 2013 年 8 月 29 日
这种奇怪的东西,我都看过后不记,也不去用,慢慢就不知道了.
|
4
heganj 2013 年 8 月 29 日 clojure 里面的 comp
http://clojuredocs.org/clojure_core/clojure.core/comp |
5
66450146 2013 年 8 月 29 日
ARC
|
6
kunimi 2013 年 8 月 29 日 Python中的倒序:str[::-1]
Quora上有一个问题叫:What are some cool Python tricks? - https://www.quora.com/Python-programming-language-1/What-are-some-cool-Python-tricks |
7
shibo501c 2013 年 8 月 29 日
a.try(:b) 中 y(:b)是个很萌的表情啊
|
10
oobleck 2013 年 8 月 29 日
a ||= b 就是 a = a || b
|
11
zencoding 2013 年 8 月 29 日
a:b?c
这句最惊呆,当其大量出现时,程序不可读了 |
12
kran 2013 年 8 月 29 日 x = x+1;
我擦, 这是沈麻?怎么可能! |
15
kurtis 2013 年 8 月 29 日 我打算开发一种跨时代的新编程语言,取名“点点”,特征之一如下,希望大家投资我开发。
a = [2,4,6,8 ...]; b = random in [2,3,5,7,11 ...]; c = 3; d=4; e=...; f=...; if (b in a) { log("b is even");} else {...} if (c in a) ... ... |
16
tititake 2013 年 8 月 29 日
public static boolean checkThis(String... strings)
|
17
sdjl 2013 年 8 月 29 日
javascript 闭包
|
18
SErHo 2013 年 8 月 29 日
int x = 8
while (x-->0) { hehe(x); } |
19
messense 2013 年 8 月 29 日 via iPhone
.NET 的 Linq
|
20
min 2013 年 8 月 29 日
是啊linq那一系列的东西都很难理解的感觉
|
21
msg7086 2013 年 8 月 29 日
LINQ碉堡
|
22
cxh116 2013 年 8 月 29 日 ruby
obj = Object.new def obj.hello puts "hello world" end obj.hello 另外楼主提到的try方法是rails的猴子补丁 |
23
fl3x 2013 年 8 月 29 日 InvokeCode= (fun args -> <@@ (%%(args.[0]) : string) :> obj @@>))
是要有多囧才能发明<@@ @@>这种东西。。。 |
24
fangzhzh 2013 年 8 月 29 日 via Android
object-c block
lisp )))))))))))()(( |
25
moplay 2013 年 8 月 29 日
"""say
"hello world" """" |
26
Sdhjt 2013 年 8 月 29 日
C语言:
(*(void(*)())0)(); |
27
yanng 2013 年 8 月 29 日
//用完我会关闭
defer f.Close() //我俩并发执行 go sum(values[:len(values)/2], resultChan) go sum(values[len(values)/2:], resultChan) |
30
Mutoo 2013 年 8 月 30 日
mov ax 4c00h
int 21h |
31
ugoa 2013 年 8 月 30 日 Ruby:
7.days.ago |
33
hazard 2013 年 8 月 30 日 中文编程...
|
34
dndx 2013 年 8 月 30 日
C:
int some_shit[10]; some_shit[20] = 100; |
36
chmlai 2013 年 8 月 30 日
objc block吧
|
37
fate 2013 年 8 月 30 日
}}}}}}}}}}}}}}}}}}
|
38
yaroot 2013 年 8 月 30 日
scala的类型系统, kinds(高阶泛型)
y combinator的推断(lambda calculus) s-expressions 其他还有很多..erlang里的=, process和其他特性 另, lz python例子里2和3大体上是一样的吧 |
40
mengzhuo 2013 年 8 月 30 日
竟然没有人说Python的操作符重载……简直是神一样的存在
|
41
celon 2013 年 8 月 30 日
直接用Java代码去操纵一个class的字节码,改变行为。
|
43
timonwong 2013 年 8 月 30 日
|
48
mengzhuo 2013 年 8 月 30 日
|
51
tioover 2013 年 8 月 30 日
Y组合子和meta programming
|
53
mouer 2013 年 8 月 30 日
haskell 斐波那契数列 fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
|