From 3c510e4ee5027aa5191e994bdf0a080a32a4b082 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Jun 2018 18:04:18 -0700 Subject: Lots of optimizations and simplifications, especially towards getting better performance on luajit. --- core/operators.nom | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/operators.nom') diff --git a/core/operators.nom b/core/operators.nom index 4ec8ff1..555a636 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -160,8 +160,7 @@ immediately # Unary operators compile [- %] to: Lua value "(- \(% as lua expr))" compile [not %] to: Lua value "(not \(% as lua expr))" - # Using custom "len()" instead of Lua's "#" operator for compatibility with luajit. - compile [length of %list] to: Lua value "len(\(%list as lua expr))" + compile [length of %list] to: Lua value "(#\(%list as lua expr))" # Update operators immediately -- cgit v1.2.3