Comments (6)
你好,已经发布 3.0.0
https://github.com/killme2008/aviator/releases/tag/aviator-3.0.0
maven 同步可能要明后天。
from aviatorscript.
public AviatorObject call ( Map< String, Object > env, AviatorObject arg1, AviatorObject arg2, AviatorObject arg3 ) {
if ( arg1.getValue( env ) == null ) {
return AviatorBoolean.FALSE;
}
...
}
这么改了一下 可以返回false,不知道符不符合作者您的意图
from aviatorscript.
你好,你下面的改动是正确的,因为你的函数需要判断参数是不是 null。
from aviatorscript.
不过我可以为 AviatorObject 增加一个方法 isNil,来方便判断。
from aviatorscript.
马上发布 3.0.0 版本,增加 AviatorObject.isNull(env) 方法,方便判断。
from aviatorscript.
非常感谢作者的及时回答与优化
from aviatorscript.
Related Issues (20)
- 微信群二维码过期是否可以更新一下
- 通过take_while获取集合中符合条件的数组后,取其中某个元素的属性报错,用了引用变量也不行
- 🩵
- [建议]支持null-safety引用变量 HOT 4
- Compile能否提前发现某些Function不可用? HOT 1
- 版本4.2.5 jdk版本openjdk11 HOT 1
- 是否有计划支持java AOT HOT 1
- 【咨询】自定义函数脚本如何获取到env信息? HOT 1
- Prediteur
- 关于复杂表达式性能优化问题请教 HOT 1
- context污染的问题 HOT 1
- com.googlecode.aviator.runtime.function.FunctionUtils 方法报错问题 HOT 2
- 利用“字符串插值”特性替代模板引擎时出现问题,请教 HOT 5
- 输入错误aviator表达式导致metaspace oom HOT 3
- 服务中能维护几百个AviatorEvaluatorInstance吗? HOT 2
- com.googlecode.aviator HOT 1
- 请问,连续表达式计算时"d=a/b; d+c",当a=10, b=0,c=5时,计算结果希望等于5,如何解决?
- 编译表达式解析不出表达式的变量 HOT 3
- 动态生成大量不同的aviator表达式导致metaSpace OOM,FGC无法正确回收 HOT 7
- Supports cancellation or timeout for executing expressions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aviatorscript.