MerlinofMines / EasyCommands

Github Repository for Ingame Scripts built by MerlinofMines. Uses MDK to Deploy to SpaceEngineerse
GNU General Public License v3.0
8 stars 3 forks source link

[Feature Request] 'In' as synonym for operator 'Contains' #266

Open CorwinMacGregor opened 1 year ago

CorwinMacGregor commented 1 year ago

With several other natural (LambdaMoo Lcode) and natural-like (Lua) languages I have programmed in, the operator which corresponds to EasyCommands' 'Contains' is tokened as 'In'. This synonym lends itself to similarly precise meaning, while simultaneously resulting in smaller Easyscript size (by virtue of fewer characters)

use in context of a 'For Each' command shouldn't be ambiguous, as typically logical expressions are not utilized as primary evaluators of any arguments expected by a 'For Each' command. In edge cases where it might, style should strongly encourage and/or syntax should require use of parens to force context