using System;using System.Collections.Generic;using
System.Data.Entity.Infrastructure;using System.Linq;using
System.Linq.Expressions;using System.Tex...
分类:
其他好文 时间:
2014-05-22 16:50:46
阅读次数:
266
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;namespace Lambda表达式{
class Program ...
分类:
其他好文 时间:
2014-05-22 16:16:25
阅读次数:
292
Evaluate the value of an arithmetic expression
inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an
integer or another express...
分类:
其他好文 时间:
2014-05-22 15:28:54
阅读次数:
175
Case when 的用法--简单Case函数简单CASE表达式,使用表达式确定返回值.语法:
CASE search_expression WHEN expression1 THEN result1 WHEN expression2 THEN
result2 ... WHEN expre...
分类:
数据库 时间:
2014-05-22 14:56:26
阅读次数:
336
元计算是我设计的太极语言中一个重要的特征。这里元计算指的是在编译时间运行从源语言代码编译后获得的目标语言代码。受到C语言中的预处理指令前缀#(#define,
#if-#else等)的启发,我选用#开头的一组符号作为各种元运算的算符。比如##expression 是编译时间运行expression,...
分类:
其他好文 时间:
2014-05-22 14:00:09
阅读次数:
237
基本语法assert_stmt ::= "assert" expression [","
expression]1 assert 5 > 3 # 肯定是对的2 assert 0 > 3 # 肯定是错的下面看看扩展的,带上附加...
分类:
编程语言 时间:
2014-05-22 01:25:06
阅读次数:
340
Evaluate the value of an arithmetic expression
inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an
integer or another express...
分类:
其他好文 时间:
2014-05-22 00:49:57
阅读次数:
311
原文:编写高质量代码改善C#程序的157个建议[为泛型指定初始值、使用委托声明、使用Lambda替代方法和匿名方法]前言
泛型并不是C#语言一开始就带有的特性,而是在FCL2.0之后实现的新功能。基于泛型,我们得以将类型参数化,以便更大范围地进行代码复用。同时,它减少了泛型类及泛型方法中的转型,确保...
分类:
其他好文 时间:
2014-05-22 00:23:00
阅读次数:
269
1OGNL概述 OGNL是对象图导航语言Object-Graph Navigation
Language的缩写,它是一种功能强大的表达式语言(Expression
Language,简称为EL),通过它简单一致的表达式语法,可以存取对象的属性,调用对象的方法,遍历整个对象的结构图,实现字段类型...
分类:
其他好文 时间:
2014-05-21 19:37:14
阅读次数:
283
本来是想试试在lua里写个简单的scheme解释器,看能精简到什么程度,至少要能跑通一个打印fibonacci数列的测试。结果就写出来个只包含lambda/if两个special
form,以及+-=和print几个内置过程的解释器,只有区区60行代码~ 爱不释手,过个半小时就把代码翻出来臭美下.....
分类:
其他好文 时间:
2014-05-21 14:28:02
阅读次数:
357